]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-40288-2.nll.stderr
New upstream version 1.30.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-40288-2.nll.stderr
CommitLineData
b7449926
XL
1error[E0621]: explicit lifetime required in the type of `y`
2 --> $DIR/issue-40288-2.rs:17:9
3 |
4LL | 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`
6...
7LL | slice[0] = y;
8 | ^^^^^^^^^^^^ lifetime `'a` required
9
10error[E0621]: explicit lifetime required in the type of `y`
11 --> $DIR/issue-40288-2.rs:32:9
12 |
13LL | 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`
15...
16LL | dst.head = y;
17 | ^^^^^^^^^^^^ lifetime `'a` required
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0621`.