blob: dbd9e24e205c8e31c3ff2004100fd081085d0359 [file] [log] [blame]
// run-pass
#![feature(generators)]
fn _run(bar: &mut i32) {
|| { //~ WARN unused generator that must be used
{
let _baz = &*bar;
yield;
}
*bar = 2;
};
}
fn main() {}