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

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

5 lines
82 B
Rust
Raw Normal View History

2016-12-26 13:34:03 +00:00
#![feature(generators)]
2017-07-11 19:57:05 +00:00
fn main() { yield; }
//~^ ERROR yield expression outside