1 warning: not reporting region error due to nll
2 --> $DIR/issue-40288-2.rs:17:20
7 warning: not reporting region error due to nll
8 --> $DIR/issue-40288-2.rs:16:20
10 LL | let slice: &mut [_] = &mut out;
13 warning: not reporting region error due to nll
14 --> $DIR/issue-40288-2.rs:14:19
16 LL | let mut out = [x];
19 warning: not reporting region error due to nll
20 --> $DIR/issue-40288-2.rs:32:20
25 warning: not reporting region error due to nll
26 --> $DIR/issue-40288-2.rs:31:18
28 LL | let dst: &mut Struct<_, [()]> = &mut out;
29 | ^^^^^^^^^^^^^^^^^^^^
31 warning: not reporting region error due to nll
32 --> $DIR/issue-40288-2.rs:29:19
34 LL | let mut out = Struct { head: x, _tail: [()] };
35 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
37 error[E0621]: explicit lifetime required in the type of `y`
38 --> $DIR/issue-40288-2.rs:17:9
40 LL | fn lifetime_transmute_slice<'a, T: ?Sized>(x: &'a T, y: &T) -> &'a T {
41 | -- help: add explicit lifetime `'a` to the type of `y`: `&'a T`
44 | ^^^^^^^^^^^^ lifetime `'a` required
46 error[E0621]: explicit lifetime required in the type of `y`
47 --> $DIR/issue-40288-2.rs:32:9
49 LL | fn lifetime_transmute_struct<'a, T: ?Sized>(x: &'a T, y: &T) -> &'a T {
50 | -- help: add explicit lifetime `'a` to the type of `y`: `&'a T`
53 | ^^^^^^^^^^^^ lifetime `'a` required
55 error: aborting due to 2 previous errors
57 For more information about this error, try `rustc --explain E0621`.