2017-12-10 13:47:55 -06:00
|
|
|
error[E0308]: mismatched types
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-27942.rs:15:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
|
|
|
= note: expected type `Resources<'_>`
|
|
|
|
found type `Resources<'a>`
|
2017-12-10 14:29:24 -06:00
|
|
|
note: the anonymous lifetime #1 defined on the method body at 15:5...
|
|
|
|
--> $DIR/issue-27942.rs:15:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2018-06-27 18:44:39 -05:00
|
|
|
note: ...does not necessarily outlive the lifetime 'a as defined on the trait at 13:18
|
|
|
|
--> $DIR/issue-27942.rs:13:18
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub trait Buffer<'a, R: Resources<'a>> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
2017-12-10 14:29:24 -06:00
|
|
|
--> $DIR/issue-27942.rs:15:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
|
|
|
= note: expected type `Resources<'_>`
|
|
|
|
found type `Resources<'a>`
|
2018-06-27 18:44:39 -05:00
|
|
|
note: the lifetime 'a as defined on the trait at 13:18...
|
|
|
|
--> $DIR/issue-27942.rs:13:18
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | pub trait Buffer<'a, R: Resources<'a>> {
|
2018-06-27 18:44:39 -05:00
|
|
|
| ^^
|
2017-12-10 14:29:24 -06:00
|
|
|
note: ...does not necessarily outlive the anonymous lifetime #1 defined on the method body at 15:5
|
|
|
|
--> $DIR/issue-27942.rs:15:5
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
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`.
|