mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
17 lines
228 B
Rust
17 lines
228 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() {}
|