1 2 3 4 5 6 7 8 9 10
fn dup(x: Box<isize>) -> Box<(Box<isize>,Box<isize>)> { Box::new((x, x)) //~^ use of moved value: `x` [E0382] } fn main() { dup(Box::new(3)); }