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

12 lines
158 B
Rust

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