1 2 3 4 5 6 7 8 9 10
#![feature(generators)] fn foo(_b: &bool, _a: ()) {} fn main() { || { let b = true; foo(&b, yield); //~ ERROR }; }