| error[E0382]: borrow of moved value: `y` |
| --> $DIR/liveness-move-in-while.rs:17:24 |
| | |
| LL | println!("{}", y); //~ ERROR use of moved value: `y` |
| | ^ value borrowed here after move |
| LL | while true { while true { while true { x = y; x.clone(); } } } |
| | - value moved here, in previous iteration of loop |
| | |
| = note: move occurs because `y` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait |
| |
| error: aborting due to previous error |
| |
| For more information about this error, try `rustc --explain E0382`. |