]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generator/ref-escapes-but-not-over-yield.nll.stderr
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / generator / ref-escapes-but-not-over-yield.nll.stderr
1 error[E0521]: borrowed data escapes outside of generator
2 --> $DIR/ref-escapes-but-not-over-yield.rs:11:9
3 |
4 LL | let mut a = &3;
5 | ----- `a` is declared here, outside of the generator body
6 ...
7 LL | a = &b;
8 | ^^^^--
9 | | |
10 | | borrow is only valid in the generator body
11 | reference to `b` escapes the generator body here
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0521`.