]> git.proxmox.com Git - rustc.git/blob - src/test/ui/generator/yield-while-local-borrowed.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / generator / yield-while-local-borrowed.stderr
1 error[E0626]: borrow may still be in use when generator yields (Ast)
2 --> $DIR/yield-while-local-borrowed.rs:24:22
3 |
4 LL | let a = &mut 3;
5 | ^
6 ...
7 LL | yield();
8 | ------- possible yield occurs here
9
10 error[E0626]: borrow may still be in use when generator yields (Ast)
11 --> $DIR/yield-while-local-borrowed.rs:52:22
12 |
13 LL | let b = &a;
14 | ^
15 ...
16 LL | yield();
17 | ------- possible yield occurs here
18
19 error[E0626]: borrow may still be in use when generator yields (Mir)
20 --> $DIR/yield-while-local-borrowed.rs:24:17
21 |
22 LL | let a = &mut 3;
23 | ^^^^^^
24 ...
25 LL | yield();
26 | ------- possible yield occurs here
27
28 error[E0626]: borrow may still be in use when generator yields (Mir)
29 --> $DIR/yield-while-local-borrowed.rs:52:21
30 |
31 LL | let b = &a;
32 | ^^
33 ...
34 LL | yield();
35 | ------- possible yield occurs here
36
37 error: aborting due to 4 previous errors
38
39 For more information about this error, try `rustc --explain E0626`.