rust/tests/ui/generator/yield-in-args.rs
2023-01-11 09:32:08 +00:00

11 lines
141 B
Rust

#![feature(generators)]
fn foo(_b: &bool, _a: ()) {}
fn main() {
|| {
let b = true;
foo(&b, yield); //~ ERROR
};
}