fork/rust

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

borsAuto merge of #71365 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4fb7144ed15

1.43.0
453 B12 linesraw
1error[E0382]: use of moved value: `x`
2  --> $DIR/move-in-guard-2.rs:10:24
3   |
4LL |     let x: Box<_> = box 1;
5   |         - move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
6...
7LL |         (_, 2) if take(x) => (),
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`.