--> $DIR/borrowck-multiple-captures.rs:27:19
|
LL | let x1: Box<_> = box 1;
- | -- move occurs because `x1` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
+ | -- move occurs because `x1` has type `Box<i32>`, which does not implement the `Copy` trait
LL | drop(x1);
| -- value moved here
...
--> $DIR/borrowck-multiple-captures.rs:27:19
|
LL | let x2: Box<_> = box 2;
- | -- move occurs because `x2` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
+ | -- move occurs because `x2` has type `Box<i32>`, which does not implement the `Copy` trait
LL | drop(x2);
| -- value moved here
LL | thread::spawn(move|| {
LL | drop(x);
| ^ value used here after move
|
- = note: move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
+ = note: move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
error[E0505]: cannot move out of `x` because it is borrowed
--> $DIR/borrowck-multiple-captures.rs:38:19
LL | drop(x);
| ^ value used here after move
|
- = note: move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
+ = note: move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
error[E0382]: use of moved value: `x`
--> $DIR/borrowck-multiple-captures.rs:49:19
|
LL | let x: Box<_> = box 1;
- | - move occurs because `x` has type `std::boxed::Box<i32>`, which does not implement the `Copy` trait
+ | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
LL | drop(x);
| - value moved here
LL | thread::spawn(move|| {