rust/tests/ui/issues/issue-27942.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.3 KiB
Plaintext
Raw Normal View History

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