2019-05-02 18:34:15 -04:00
|
|
|
error[E0626]: borrow may still be in use when generator yields
|
|
|
|
--> $DIR/yield-while-local-borrowed.rs:13:17
|
2018-01-29 08:29:58 +01:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let a = &mut 3;
|
2018-01-29 08:29:58 +01:00
|
|
|
| ^^^^^^
|
2019-05-02 18:34:15 -04:00
|
|
|
LL |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | yield();
|
2018-01-29 08:29:58 +01:00
|
|
|
| ------- possible yield occurs here
|
|
|
|
|
2019-05-02 18:34:15 -04:00
|
|
|
error[E0626]: borrow may still be in use when generator yields
|
|
|
|
--> $DIR/yield-while-local-borrowed.rs:40:21
|
2018-01-11 19:49:26 +01:00
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | let b = &a;
|
2018-01-11 19:49:26 +01:00
|
|
|
| ^^
|
2019-05-02 18:34:15 -04:00
|
|
|
LL |
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | yield();
|
2017-07-15 06:52:49 -04:00
|
|
|
| ------- possible yield occurs here
|
|
|
|
|
2019-05-02 18:34:15 -04:00
|
|
|
error: aborting due to 2 previous errors
|
2017-07-15 06:52:49 -04:00
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0626`.
|