summaryrefslogtreecommitdiffstats
path: root/src/test/ui/liveness/liveness-move-in-loop.stderr
blob: 832d4f8fa030f9fae223c2db1c27565e8e40d861 (plain)
1
2
3
4
5
6
7
8
9
10
11
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`.