summary refs log tree commit diff
path: root/src/test/ui/generator/yield-while-local-borrowed.stderr
blob: 56f425b7e70a0439d35756d8b0f05275329c8f1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
error[E0626]: borrow may still be in use when generator yields (Ast)
  --> $DIR/yield-while-local-borrowed.rs:15:22
   |
LL |         let a = &mut 3;
   |                      ^
...
LL |         yield();
   |         ------- possible yield occurs here

error[E0626]: borrow may still be in use when generator yields (Ast)
  --> $DIR/yield-while-local-borrowed.rs:43:22
   |
LL |             let b = &a;
   |                      ^
...
LL |             yield();
   |             ------- possible yield occurs here

error[E0626]: borrow may still be in use when generator yields (Mir)
  --> $DIR/yield-while-local-borrowed.rs:15:17
   |
LL |         let a = &mut 3;
   |                 ^^^^^^
...
LL |         yield();
   |         ------- possible yield occurs here

error[E0626]: borrow may still be in use when generator yields (Mir)
  --> $DIR/yield-while-local-borrowed.rs:43:21
   |
LL |             let b = &a;
   |                     ^^
...
LL |             yield();
   |             ------- possible yield occurs here

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0626`.