]> git.proxmox.com Git - rustc.git/blob - src/test/ui/moves-based-on-type-tuple.stderr
New upstream version 1.26.0+dfsg1
[rustc.git] / src / test / ui / moves-based-on-type-tuple.stderr
1 error[E0382]: use of moved value: `x` (Ast)
2 --> $DIR/moves-based-on-type-tuple.rs:16:13
3 |
4 LL | box (x, x)
5 | - ^ value used here after move
6 | |
7 | value moved here
8 |
9 = note: move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
10
11 error[E0382]: use of moved value: `x` (Mir)
12 --> $DIR/moves-based-on-type-tuple.rs:16:13
13 |
14 LL | box (x, x)
15 | - ^ value used here after move
16 | |
17 | value moved here
18 |
19 = note: move occurs because `x` has type `std::boxed::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`.