1 error[E0382]: use of moved value: `y`
2 --> $DIR/liveness-move-in-loop.rs:11:25
4 LL | let y: Box<isize> = 42.into();
5 | - move occurs because `y` has type `Box<isize>`, which does not implement the `Copy` trait
8 | ---- inside of this loop
9 LL | println!("{}", y);
11 | ---- inside of this loop
13 | ---- inside of this loop
15 | ---- inside of this loop
17 | ^ value moved here, in previous iteration of loop
19 help: consider cloning the value if the performance cost is acceptable
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0382`.