1 #![feature(box_syntax)] 2 main()3 fn main() { 4 let x: Box<_> = box 1; 5 let f = move|| { 6 let _a = x; 7 drop(x); 8 //~^ ERROR: use of moved value: `x` 9 }; 10 f(); 11 } 12