]> git.proxmox.com Git - rustc.git/blame - src/test/ui/generator/borrowing.stderr
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / ui / generator / borrowing.stderr
CommitLineData
ea8adc8c
XL
1error[E0597]: `a` does not live long enough
2 --> $DIR/borrowing.rs:18:20
3 |
418 | (|| yield &a).resume()
5 | -- ^ does not live long enough
6 | |
7 | capture occurs here
819 | //~^ ERROR: `a` does not live long enough
920 | };
10 | - borrowed value only lives until here
11...
1229 | }
13 | - borrowed value needs to live until here
14
15error[E0597]: `a` does not live long enough
16 --> $DIR/borrowing.rs:25:20
17 |
1824 | || {
19 | -- capture occurs here
2025 | yield &a
21 | ^ does not live long enough
22...
2328 | };
24 | - borrowed value only lives until here
2529 | }
26 | - borrowed value needs to live until here
27
28error: aborting due to 2 previous errors
29