blob: ab4460a32684f7ee521a8bed09dbce768ee7cbc9 [file] [log] [blame]
error[E0382]: use of moved value: `x`
--> $DIR/liveness-move-call-arg.rs:9:14
|
LL | let x: Box<isize> = box 25;
| - move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
LL | loop {
LL | take(x);
| ^ value moved here, in previous iteration of loop
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.