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
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
15 | 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
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
15 | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
note: ...does not necessarily outlive the lifetime 'a as defined on the trait at 13:1
|
|
|
|
--> $DIR/issue-27942.rs:13:1
|
|
|
|
|
|
2018-01-28 15:42:49 -06:00
|
|
|
13 | pub trait Buffer<'a, R: Resources<'a>> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
15 | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
|
|
|
|
|
|
|
|
|
= note: expected type `Resources<'_>`
|
|
|
|
found type `Resources<'a>`
|
|
|
|
note: the lifetime 'a as defined on the trait at 13:1...
|
|
|
|
--> $DIR/issue-27942.rs:13:1
|
|
|
|
|
|
2018-01-28 15:42:49 -06:00
|
|
|
13 | pub trait Buffer<'a, R: Resources<'a>> {
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
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
|
|
|
|
|
2017-12-10 14:29:24 -06:00
|
|
|
15 | fn select(&self) -> BufferViewHandle<R>;
|
2017-12-10 13:47:55 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|