1 2 3 4 5 6 7 8 9 10 11 12
fn take(_x: Box<isize>) {} fn main() { let _ = || { let x: Box<isize> = Box::new(25); loop { take(x); //~ ERROR use of moved value: `x` } }; }