1 error[E0597]: `a` does not live long enough
2 --> $DIR/borrowing.rs:18:29
4 LL | unsafe { (|| yield &a).resume() }
5 | -- ^ borrowed value does not live long enough
8 LL | //~^ ERROR: `a` does not live long enough
10 | - borrowed value only lives until here
13 | - borrowed value needs to live until here
15 error[E0597]: `a` does not live long enough
16 --> $DIR/borrowing.rs:25:20
19 | -- capture occurs here
21 | ^ borrowed value does not live long enough
24 | - borrowed value only lives until here
26 | - borrowed value needs to live until here
28 error: aborting due to 2 previous errors
30 For more information about this error, try `rustc --explain E0597`.