mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 07:14:28 +00:00
17 lines
227 B
Rust
17 lines
227 B
Rust
// run-pass
|
|
|
|
#![feature(generators)]
|
|
|
|
fn _run(bar: &mut i32) {
|
|
|| { //~ WARN unused generator that must be used
|
|
{
|
|
let _baz = &*bar;
|
|
yield;
|
|
}
|
|
|
|
*bar = 2;
|
|
};
|
|
}
|
|
|
|
fn main() {}
|