1 error[E0597]: `z` does not live long enough (Ast)
2 --> $DIR/issue-46471-1.rs:16:14
5 | ^ borrowed value does not live long enough
7 | - `z` dropped here while still borrowed
10 | - borrowed value needs to live until here
12 error[E0597]: `z` does not live long enough (Mir)
13 --> $DIR/issue-46471-1.rs:16:9
19 | | ^^^^^^ borrowed value does not live long enough
23 | |_____`z` dropped here while still borrowed
24 | borrow later used here
26 error: aborting due to 2 previous errors
28 For more information about this error, try `rustc --explain E0597`.