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

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

11 lines
141 B
Rust
Raw Normal View History

2017-07-14 17:01:20 -05:00
#![feature(generators)]
fn foo(_b: &bool, _a: ()) {}
fn main() {
2017-07-15 14:28:42 -05:00
|| {
let b = true;
foo(&b, yield); //~ ERROR
};
2017-07-14 17:01:20 -05:00
}