17 lines
183 B
Rust
17 lines
183 B
Rust
// run-pass
|
|
|
|
#![feature(generators)]
|
|
|
|
fn _run(bar: &mut i32) {
|
|
|| {
|
|
{
|
|
let _baz = &*bar;
|
|
yield;
|
|
}
|
|
|
|
*bar = 2;
|
|
};
|
|
}
|
|
|
|
fn main() {}
|