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()
7 | borrowed value does not live long enough
8 | borrow may end up in a temporary, created here
12 | borrowed value only lives until here
13 | temporary later dropped here, potentially using the reference
15 error[E0597]: `y` does not live long enough
16 --> $DIR/issue-23338-locals-die-before-temps-of-body.rs:27:9
18 LL | y.borrow().clone()
21 | borrowed value does not live long enough
22 | borrow may end up in a temporary, created here
24 | -- temporary later dropped here, potentially using the reference
26 | borrowed value only lives until here
28 error: aborting due to 2 previous errors
30 For more information about this error, try `rustc --explain E0597`.