fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0382]: use of moved value: `y` 2 --> $DIR/liveness-move-in-loop.rs:11:25 3 | 4LL | let y: Box<isize> = 42.into(); 5 | - move occurs because `y` has type `Box<isize>`, which does not implement the `Copy` trait 6... 7LL | loop { 8 | ---- inside of this loop 9LL | println!("{}", y); 10LL | loop { 11 | ---- inside of this loop 12LL | loop { 13 | ---- inside of this loop 14LL | loop { 15 | ---- inside of this loop 16LL | x = y; 17 | ^ value moved here, in previous iteration of loop 18 | 19help: consider cloning the value if the performance cost is acceptable 20 | 21LL | x = y.clone(); 22 | ++++++++ 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0382`.