rust/tests/ui/coroutine/yield-while-local-borrowed.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
618 B
Plaintext
Raw Normal View History

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