1 error[E0597]: `y` does not live long enough
2 --> $DIR/issue-23338-locals-die-before-temps-of-body.rs:20:5
4 LL | y.borrow().clone()
5 | ^ borrowed value does not live long enough
7 | - `y` dropped here while still borrowed
9 = note: values in a scope are dropped in the opposite order they are created
11 error[E0597]: `y` does not live long enough
12 --> $DIR/issue-23338-locals-die-before-temps-of-body.rs:27:9
14 LL | y.borrow().clone()
15 | ^ borrowed value does not live long enough
17 | -- borrowed value needs to live until here
19 | `y` dropped here while still borrowed
21 error: aborting due to 2 previous errors
23 For more information about this error, try `rustc --explain E0597`.