rust/src/test/ui/issues/issue-27942.stderr

42 lines
1.4 KiB
Plaintext
Raw Normal View History

error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27942.rs:5:5
|
2018-02-22 18:42:32 -06:00
LL | fn select(&self) -> BufferViewHandle<R>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
= note: expected type `Resources<'_>`
found type `Resources<'a>`
2018-12-25 09:56:47 -06:00
note: the anonymous lifetime #1 defined on the method body at 5:5...
--> $DIR/issue-27942.rs:5:5
|
2018-02-22 18:42:32 -06:00
LL | fn select(&self) -> BufferViewHandle<R>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2019-10-10 18:58:35 -05:00
note: ...does not necessarily outlive the lifetime `'a` as defined on the trait at 3:18
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27942.rs:3:18
|
2018-02-22 18:42:32 -06:00
LL | pub trait Buffer<'a, R: Resources<'a>> {
| ^^
error[E0308]: mismatched types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27942.rs:5:5
|
2018-02-22 18:42:32 -06:00
LL | fn select(&self) -> BufferViewHandle<R>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
= note: expected type `Resources<'_>`
found type `Resources<'a>`
2019-10-10 18:58:35 -05:00
note: the lifetime `'a` as defined on the trait at 3:18...
2018-12-25 09:56:47 -06:00
--> $DIR/issue-27942.rs:3:18
|
2018-02-22 18:42:32 -06:00
LL | pub trait Buffer<'a, R: Resources<'a>> {
| ^^
2018-12-25 09:56:47 -06:00
note: ...does not necessarily outlive the anonymous lifetime #1 defined on the method body at 5:5
--> $DIR/issue-27942.rs:5:5
|
2018-02-22 18:42:32 -06:00
LL | fn select(&self) -> BufferViewHandle<R>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0308`.