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

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

7 lines
109 B
Rust
Raw Normal View History

2016-12-26 07:34:03 -06:00
#![feature(generators)]
2017-07-11 14:57:05 -05:00
static B: u8 = { yield 3u8; 3u8};
//~^ ERROR yield expression outside
fn main() {}