1 error[E0621]: explicit lifetime required in the type of `y`
2 --> $DIR/issue-40288-2.rs:9:5
4 LL | fn lifetime_transmute_slice<'a, T: ?Sized>(x: &'a T, y: &T) -> &'a T {
5 | -- help: add explicit lifetime `'a` to the type of `y`: `&'a T`
8 | ^^^^^^ lifetime `'a` required
10 error[E0621]: explicit lifetime required in the type of `y`
11 --> $DIR/issue-40288-2.rs:24:5
13 LL | fn lifetime_transmute_struct<'a, T: ?Sized>(x: &'a T, y: &T) -> &'a T {
14 | -- help: add explicit lifetime `'a` to the type of `y`: `&'a T`
17 | ^^^^^^^^ lifetime `'a` required
19 error: aborting due to 2 previous errors
21 For more information about this error, try `rustc --explain E0621`.