fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

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