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

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

10 lines
278 B
Plaintext
Raw Normal View History

2023-10-19 16:46:28 -05:00
error[E0627]: yield expression outside of coroutine 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 1 previous error
2017-08-09 18:37:56 -05:00
For more information about this error, try `rustc --explain E0627`.