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