1 error[E0597]: `a` does not live long enough
2 --> $DIR/borrowing.rs:18:18
4 LL | unsafe { (|| yield &a).resume() }
5 | ^^^^^^^^^^^^^ borrowed value does not live long enough
6 LL | //~^ ERROR: `a` does not live long enough
8 | - `a` dropped here while still borrowed
10 error[E0597]: `a` does not live long enough
11 --> $DIR/borrowing.rs:24:9
14 | -- borrow later stored here
18 LL | | //~^ ERROR: `a` does not live long enough
20 | |_________^ borrowed value does not live long enough
22 | - `a` dropped here while still borrowed
24 error: aborting due to 2 previous errors
26 For more information about this error, try `rustc --explain E0597`.