rust/tests/ui/coroutine/yield-in-args.stderr

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

18 lines
471 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
--> $DIR/yield-in-args.rs:9:13
|
LL | || {
| -- within this coroutine
LL | let b = true;
2019-03-09 06:03:44 -06:00
LL | foo(&b, yield);
| ^^ ----- possible yield occurs here
|
help: add `static` to mark this coroutine as unmovable
|
LL | static || {
| ++++++
error: aborting due to 1 previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0626`.