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

10 lines
276 B
Plaintext
Raw Normal View History

error[E0627]: yield expression outside of generator literal
2018-12-25 09:56:47 -06:00
--> $DIR/yield-in-const.rs:3:17
2017-08-09 18:37:56 -05:00
|
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`.