1 2 3 4 5 6 7 8 9
fn main() { let x: Box<_> = Box::new(1); let f = move|| { let _a = x; drop(x); //~^ ERROR: use of moved value: `x` }; f(); }