fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/issue-27942.rs:5:25 3 | 4LL | fn select(&self) -> BufferViewHandle<R>; 5 | ^^^^^^^^^^^^^^^^^^^ lifetime mismatch 6 | 7 = note: expected trait `Resources<'_>` 8 found trait `Resources<'a>` 9note: the anonymous lifetime defined here... 10 --> $DIR/issue-27942.rs:5:15 11 | 12LL | fn select(&self) -> BufferViewHandle<R>; 13 | ^^^^^ 14note: ...does not necessarily outlive the lifetime `'a` as defined here 15 --> $DIR/issue-27942.rs:3:18 16 | 17LL | pub trait Buffer<'a, R: Resources<'a>> { 18 | ^^ 19 20error[E0308]: mismatched types 21 --> $DIR/issue-27942.rs:5:25 22 | 23LL | fn select(&self) -> BufferViewHandle<R>; 24 | ^^^^^^^^^^^^^^^^^^^ lifetime mismatch 25 | 26 = note: expected trait `Resources<'_>` 27 found trait `Resources<'a>` 28note: the lifetime `'a` as defined here... 29 --> $DIR/issue-27942.rs:3:18 30 | 31LL | pub trait Buffer<'a, R: Resources<'a>> { 32 | ^^ 33note: ...does not necessarily outlive the anonymous lifetime defined here 34 --> $DIR/issue-27942.rs:5:15 35 | 36LL | fn select(&self) -> BufferViewHandle<R>; 37 | ^^^^^ 38 39error: aborting due to 2 previous errors 40 41For more information about this error, try `rustc --explain E0308`.