rust/src/test/ui/generator/yield-in-function.stderr

10 lines
259 B
Plaintext
Raw Normal View History

2017-08-09 18:37:56 -05:00
error[E0627]: yield statement outside of generator literal
--> $DIR/yield-in-function.rs:13:13
|
2018-02-22 18:42:32 -06:00
LL | fn main() { yield; }
2017-08-09 18:37:56 -05:00
| ^^^^^
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0627`.