]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generator/yield-while-local-borrowed.stderr
Auto merge of #98051 - davidtwco:split-dwarf-stabilization, r=wesleywiser
[rust.git] / src / test / ui / generator / yield-while-local-borrowed.stderr
1 error[E0626]: borrow may still be in use when generator yields
2   --> $DIR/yield-while-local-borrowed.rs:13:17
3    |
4 LL |         let a = &mut 3;
5    |                 ^^^^^^
6 LL |
7 LL |         yield();
8    |         ------- possible yield occurs here
9
10 error[E0626]: borrow may still be in use when generator yields
11   --> $DIR/yield-while-local-borrowed.rs:40:21
12    |
13 LL |             let b = &a;
14    |                     ^^
15 LL |
16 LL |             yield();
17    |             ------- possible yield occurs here
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0626`.