2023-10-19 16:46:28 -05:00
|
|
|
#![feature(coroutines)]
|
2017-07-14 17:01:20 -05:00
|
|
|
|
|
|
|
fn foo(_b: &bool, _a: ()) {}
|
|
|
|
|
|
|
|
fn main() {
|
2024-04-11 08:15:34 -05:00
|
|
|
#[coroutine]
|
2017-07-15 14:28:42 -05:00
|
|
|
|| {
|
|
|
|
let b = true;
|
|
|
|
foo(&b, yield); //~ ERROR
|
|
|
|
};
|
2017-07-14 17:01:20 -05:00
|
|
|
}
|