rust/src/test/ui/liveness/liveness-move-in-loop.nll.stderr
Vadim Petrochenkov c1cfacfb13 Update NLL tests
2019-03-11 23:18:35 +03:00

13 lines
461 B
Plaintext

error[E0382]: use of moved value: `y`
--> $DIR/liveness-move-in-loop.rs:11:25
|
LL | let y: Box<isize> = box 42;
| - move occurs because `y` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
...
LL | x = y;
| ^ value moved here, in previous iteration of loop
error: aborting due to previous error
For more information about this error, try `rustc --explain E0382`.