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