]> git.proxmox.com Git - rustc.git/blob - src/test/ui/regions/regions-nested-fns-2.stderr
Update unsuspicious file list
[rustc.git] / src / test / ui / regions / regions-nested-fns-2.stderr
1 error[E0597]: `y` does not live long enough
2 --> $DIR/regions-nested-fns-2.rs:7:25
3 |
4 LL | |z| {
5 | --- value captured here
6 LL | if false { &y } else { z }
7 | -^
8 | ||
9 | |borrowed value does not live long enough
10 | returning this value requires that `y` is borrowed for `'static`
11 ...
12 LL | }
13 | - `y` dropped here while still borrowed
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0597`.