rust/tests/ui/generator/yield-in-function.stderr

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

10 lines
259 B
Plaintext
Raw Normal View History

error[E0627]: yield expression outside of generator literal
2018-12-25 08:56:47 -07:00
--> $DIR/yield-in-function.rs:3:13
2017-08-09 16:37:56 -07:00
|
2018-02-23 03:42:32 +03:00
LL | fn main() { yield; }
2017-08-09 16:37:56 -07:00
| ^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0627`.