os-rust/tests/ui/coroutine/issue-48048.stderr

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

20 lines
524 B
Text
Raw Normal View History

2023-10-19 21:46:28 +00:00
error[E0626]: borrow may still be in use when coroutine yields
2018-12-25 08:56:47 -07:00
--> $DIR/issue-48048.rs:9:9
|
LL | #[coroutine] || {
| -- within this coroutine
...
2019-03-09 15:03:44 +03:00
LL | x.0({
| ^^^
2018-02-23 03:42:32 +03:00
LL | yield;
| ----- possible yield occurs here
|
help: add `static` to mark this coroutine as unmovable
|
LL | #[coroutine] static || {
| ++++++
error: aborting due to 1 previous error
2018-03-03 15:59:40 +01:00
For more information about this error, try `rustc --explain E0626`.