// run-pass
#![feature(coroutines)]
fn main() {
let a = || {
{
let w: i32 = 4;
yield;
println!("{:?}", w);
}
let x: i32 = 5;
println!("{:?}", x);
let y: i32 = 6;
println!("{:?}", y);
let z: i32 = 7;
println!("{:?}", z);
};
assert_eq!(8, std::mem::size_of_val(&a));