1 error[E0308]: mismatched types
2 --> $DIR/issue-27942.rs:15:5
4 LL | fn select(&self) -> BufferViewHandle<R>;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
7 = note: expected type `Resources<'_>`
8 found type `Resources<'a>`
9 note: the anonymous lifetime #1 defined on the method body at 15:5...
10 --> $DIR/issue-27942.rs:15:5
12 LL | fn select(&self) -> BufferViewHandle<R>;
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 note: ...does not necessarily outlive the lifetime 'a as defined on the trait at 13:18
15 --> $DIR/issue-27942.rs:13:18
17 LL | pub trait Buffer<'a, R: Resources<'a>> {
20 error[E0308]: mismatched types
21 --> $DIR/issue-27942.rs:15:5
23 LL | fn select(&self) -> BufferViewHandle<R>;
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ lifetime mismatch
26 = note: expected type `Resources<'_>`
27 found type `Resources<'a>`
28 note: the lifetime 'a as defined on the trait at 13:18...
29 --> $DIR/issue-27942.rs:13:18
31 LL | pub trait Buffer<'a, R: Resources<'a>> {
33 note: ...does not necessarily outlive the anonymous lifetime #1 defined on the method body at 15:5
34 --> $DIR/issue-27942.rs:15:5
36 LL | fn select(&self) -> BufferViewHandle<R>;
37 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 error: aborting due to 2 previous errors
41 For more information about this error, try `rustc --explain E0308`.