mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-17 03:43:17 +00:00
12 lines
158 B
Rust
12 lines
158 B
Rust
#![feature(coroutines)]
|
|
|
|
fn foo(_b: &bool, _a: ()) {}
|
|
|
|
fn main() {
|
|
#[coroutine]
|
|
|| {
|
|
let b = true;
|
|
foo(&b, yield); //~ ERROR
|
|
};
|
|
}
|