]> git.proxmox.com Git - rustc.git/blob - src/test/ui/moves/move-out-of-tuple-field.stderr
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / moves / move-out-of-tuple-field.stderr
1 error[E0382]: use of moved value: `x.0`
2 --> $DIR/move-out-of-tuple-field.rs:8:13
3 |
4 LL | let y = x.0;
5 | --- value moved here
6 LL | let z = x.0;
7 | ^^^ value used here after move
8 |
9 = note: move occurs because `x.0` has type `Box<i32>`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `x.0`
12 --> $DIR/move-out-of-tuple-field.rs:12:13
13 |
14 LL | let y = x.0;
15 | --- value moved here
16 LL | let z = x.0;
17 | ^^^ value used here after move
18 |
19 = note: move occurs because `x.0` has type `Box<isize>`, which does not implement the `Copy` trait
20
21 error: aborting due to 2 previous errors
22
23 For more information about this error, try `rustc --explain E0382`.