mirror of
https://git.proxmox.com/git/rustc
synced 2025-05-29 06:53:42 +00:00
17 lines
227 B
Rust
17 lines
227 B
Rust
// run-pass
|
|
|
|
#![feature(coroutines)]
|
|
|
|
fn _run(bar: &mut i32) {
|
|
|| { //~ WARN unused coroutine that must be used
|
|
{
|
|
let _baz = &*bar;
|
|
yield;
|
|
}
|
|
|
|
*bar = 2;
|
|
};
|
|
}
|
|
|
|
fn main() {}
|