1 error[E0597]: `y` does not live long enough
2 --> $DIR/regions-nested-fns-2.rs:18:25
5 | --- value captured here
7 LL | if false { &y } else { z }
8 | ^ borrowed value does not live long enough
11 | - `y` dropped here while still borrowed
13 = note: borrowed value must be valid for the static lifetime...
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0597`.