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