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