rust/tests/ui/coroutine/yield-in-args.rs
2023-10-20 21:14:02 +00:00

11 lines
141 B
Rust

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