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