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