rust/tests/ui/coroutine/yield-in-static.rs

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

8 lines
148 B
Rust
Raw Normal View History

2023-10-19 21:46:28 +00:00
#![feature(coroutines)]
2016-12-26 13:34:03 +00:00
2017-07-11 19:57:05 +00:00
static B: u8 = { yield 3u8; 3u8};
//~^ ERROR yield expression outside
//~| ERROR `yield` can only be used in
fn main() {}