fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
614 B21 linesraw
1error[E0626]: borrow may still be in use when generator yields
2  --> $DIR/yield-while-local-borrowed.rs:13:17
3   |
4LL |         let a = &mut 3;
5   |                 ^^^^^^
6LL |
7LL |         yield();
8   |         ------- possible yield occurs here
9
10error[E0626]: borrow may still be in use when generator yields
11  --> $DIR/yield-while-local-borrowed.rs:40:21
12   |
13LL |             let b = &a;
14   |                     ^^
15LL |
16LL |             yield();
17   |             ------- possible yield occurs here
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0626`.