]> git.lizzy.rs Git - rust.git/blob - src/test/ui/liveness/liveness-move-in-loop.stderr
Rollup merge of #87440 - twetzel59:fix-barrier-no-op, r=yaahc
[rust.git] / src / test / ui / liveness / liveness-move-in-loop.stderr
1 error[E0382]: use of moved value: `y`
2   --> $DIR/liveness-move-in-loop.rs:11:25
3    |
4 LL |     let y: Box<isize> = 42.into();
5    |         - move occurs because `y` has type `Box<isize>`, which does not implement the `Copy` trait
6 ...
7 LL |                     x = y;
8    |                         ^ value moved here, in previous iteration of loop
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0382`.