fork/rust

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

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
785 B23 linesraw
1error[E0382]: use of moved value: `x.0`
2  --> $DIR/move-out-of-tuple-field.rs:8:13
3   |
4LL |     let y = x.0;
5   |             --- value moved here
6LL |     let z = x.0;
7   |             ^^^ value used here after move
8   |
9   = note: move occurs because `x.0` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
10
11error[E0382]: use of moved value: `x.0`
12  --> $DIR/move-out-of-tuple-field.rs:12:13
13   |
14LL |     let y = x.0;
15   |             --- value moved here
16LL |     let z = x.0;
17   |             ^^^ value used here after move
18   |
19   = note: move occurs because `x.0` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
20
21error: aborting due to 2 previous errors
22
23For more information about this error, try `rustc --explain E0382`.