]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-tuple.stderr
Unit test from #57866.
[rust.git] / src / test / ui / moves / moves-based-on-type-tuple.stderr
1 error[E0382]: use of moved value: `x` (Ast)
2   --> $DIR/moves-based-on-type-tuple.rs:6: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:6: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`.