]> git.lizzy.rs Git - rust.git/blob - src/test/ui/moves/moves-based-on-type-tuple.stderr
Auto merge of #73660 - flip1995:clippyup, r=nikomatsakis
[rust.git] / src / test / ui / moves / moves-based-on-type-tuple.stderr
1 error[E0382]: use of moved value: `x`
2   --> $DIR/moves-based-on-type-tuple.rs:4:13
3    |
4 LL | fn dup(x: Box<isize>) -> Box<(Box<isize>,Box<isize>)> {
5    |        - move occurs because `x` has type `std::boxed::Box<isize>`, which does not implement the `Copy` trait
6 LL |     box (x, x)
7    |          -  ^ value used here after move
8    |          |
9    |          value moved here
10
11 error: aborting due to previous error
12
13 For more information about this error, try `rustc --explain E0382`.