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