1 error[E0597]: `y` does not live long enough
2 --> $DIR/regions-nested-fns-2.rs:18:25
5 | - has type `&'0 isize`
7 LL | if false { &y } else { z }
8 | ^ `y` would have to be valid for `'0`
11 | - but `y` will be dropped here, when the function `nested` returns
13 = note: functions cannot return a borrow to data owned within the function's scope, functions can only return borrows to data passed as arguments
14 = note: to learn more, visit <https://doc.rust-lang.org/book/second-edition/ch04-02-references-and-borrowing.html#dangling-references>
16 error: aborting due to previous error
18 For more information about this error, try `rustc --explain E0597`.