os-rust/tests/ui/coroutine/yield-in-static.stderr

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

16 lines
470 B
Text
Raw Normal View History

error: `yield` can only be used in `#[coroutine]` closures, or `gen` blocks
--> $DIR/yield-in-static.rs:3:18
|
LL | static B: u8 = { yield 3u8; 3u8};
| ^^^^^^^^^
2023-10-19 21:46:28 +00:00
error[E0627]: yield expression outside of coroutine literal
2018-12-25 08:56:47 -07:00
--> $DIR/yield-in-static.rs:3:18
2017-08-09 16:37:56 -07:00
|
2018-02-23 03:42:32 +03:00
LL | static B: u8 = { yield 3u8; 3u8};
2017-08-09 16:37:56 -07:00
| ^^^^^^^^^
error: aborting due to 2 previous errors
2017-08-09 16:37:56 -07:00
For more information about this error, try `rustc --explain E0627`.