1 error[E0597]: `a` does not live long enough
2 --> $DIR/borrowing.rs:18:20
4 18 | (|| yield &a).resume()
5 | -- ^ does not live long enough
8 19 | //~^ 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 | ^ 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