1 error[E0597]: `y` does not live long enough
2 --> $DIR/regions-nested-fns-2.rs:7:25
5 | --- value captured here
6 LL | if false { &y } else { z }
9 | |borrowed value does not live long enough
10 | returning this value requires that `y` is borrowed for `'static`
13 | - `y` dropped here while still borrowed
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0597`.