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

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

10 lines
279 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-static.rs:3:18
2017-08-09 18:37:56 -05:00
|
2018-02-22 18:42:32 -06:00
LL | static B: 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`.