Error on using yield
without also using #[coroutine]
on the closure
And suggest adding the `#[coroutine]` to the closure
This commit is contained in:
parent
a589632dad
commit
aef0f4024a
279 changed files with 1290 additions and 886 deletions
|
@ -2,3 +2,4 @@
|
|||
|
||||
fn main() { yield; }
|
||||
//~^ ERROR yield expression outside
|
||||
//~| ERROR `yield` can only be used in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue