diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/liveness/liveness-move-in-loop.stderr | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/liveness/liveness-move-in-loop.stderr b/src/test/ui/liveness/liveness-move-in-loop.stderr new file mode 100644 index 000000000..832d4f8fa --- /dev/null +++ b/src/test/ui/liveness/liveness-move-in-loop.stderr @@ -0,0 +1,12 @@ +error[E0382]: use of moved value: `y` + --> $DIR/liveness-move-in-loop.rs:11:25 + | +LL | let y: Box<isize> = 42.into(); + | - move occurs because `y` has type `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`. |