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

10 lines
276 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-const.rs:13:17
|
2018-02-22 18:42:32 -06:00
LL | const A: u8 = { yield 3u8; 3u8};
2017-08-09 18:37:56 -05:00
| ^^^^^^^^^
error: aborting due to previous error
2017-08-09 18:37:56 -05:00
For more information about this error, try `rustc --explain E0627`.