1 error[E0597]: `x` does not live long enough
2 --> $DIR/issue-52534-2.rs:19:9
5 | ^^^^^^ borrowed value does not live long enough
7 | - `x` dropped here while still borrowed
9 LL | println!("{}", y);
10 | - borrow later used here
12 error: aborting due to previous error
14 For more information about this error, try `rustc --explain E0597`.