]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0621]: explicit lifetime required in the type of `y` |
0731742a | 2 | --> $DIR/issue-40288-2.rs:9:5 |
8faf50e0 XL |
3 | | |
4 | LL | fn lifetime_transmute_slice<'a, T: ?Sized>(x: &'a T, y: &T) -> &'a T { | |
b7449926 | 5 | | -- help: add explicit lifetime `'a` to the type of `y`: `&'a T` |
8faf50e0 XL |
6 | ... |
7 | LL | out[0] | |
8 | | ^^^^^^ lifetime `'a` required | |
9 | ||
10 | error[E0621]: explicit lifetime required in the type of `y` | |
0731742a | 11 | --> $DIR/issue-40288-2.rs:24:5 |
8faf50e0 XL |
12 | | |
13 | LL | fn lifetime_transmute_struct<'a, T: ?Sized>(x: &'a T, y: &T) -> &'a T { | |
b7449926 | 14 | | -- help: add explicit lifetime `'a` to the type of `y`: `&'a T` |
8faf50e0 XL |
15 | ... |
16 | LL | out.head | |
17 | | ^^^^^^^^ lifetime `'a` required | |
18 | ||
19 | error: aborting due to 2 previous errors | |
20 | ||
21 | For more information about this error, try `rustc --explain E0621`. |