1 error[E0505]: cannot move out of `x1` because it is borrowed
2 --> $DIR/borrowck-multiple-captures.rs:12:19
5 | --- borrow of `x1` occurs here
7 LL | thread::spawn(move|| {
8 | ^^^^^^ move out of `x1` occurs here
11 | -- move occurs due to use in closure
14 | ---- borrow later used here
16 error[E0505]: cannot move out of `x2` because it is borrowed
17 --> $DIR/borrowck-multiple-captures.rs:12:19
20 | --- borrow of `x2` occurs here
21 LL | thread::spawn(move|| {
22 | ^^^^^^ move out of `x2` occurs here
25 | -- move occurs due to use in closure
28 | ---- borrow later used here
30 error[E0382]: use of moved value: `x1`
31 --> $DIR/borrowck-multiple-captures.rs:27:19
33 LL | let x1: Box<_> = Box::new(1);
34 | -- move occurs because `x1` has type `Box<i32>`, which does not implement the `Copy` trait
38 LL | thread::spawn(move|| {
39 | ^^^^^^ value used here after move
42 | -- use occurs due to use in closure
44 error[E0382]: use of moved value: `x2`
45 --> $DIR/borrowck-multiple-captures.rs:27:19
47 LL | let x2: Box<_> = Box::new(2);
48 | -- move occurs because `x2` has type `Box<i32>`, which does not implement the `Copy` trait
51 LL | thread::spawn(move|| {
52 | ^^^^^^ value used here after move
55 | -- use occurs due to use in closure
57 error[E0382]: use of moved value: `x`
58 --> $DIR/borrowck-multiple-captures.rs:41:14
63 | ^ value used here after move
65 = note: move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
67 error[E0505]: cannot move out of `x` because it is borrowed
68 --> $DIR/borrowck-multiple-captures.rs:38:19
71 | -- borrow of `x` occurs here
72 LL | thread::spawn(move|| {
73 | ^^^^^^ move out of `x` occurs here
76 | - move occurs due to use in closure
79 | --- borrow later used here
81 error[E0382]: use of moved value: `x`
82 --> $DIR/borrowck-multiple-captures.rs:52:14
87 | ^ value used here after move
89 = note: move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
91 error[E0382]: use of moved value: `x`
92 --> $DIR/borrowck-multiple-captures.rs:49:19
94 LL | let x: Box<_> = Box::new(1);
95 | - move occurs because `x` has type `Box<i32>`, which does not implement the `Copy` trait
98 LL | thread::spawn(move|| {
99 | ^^^^^^ value used here after move
102 | - use occurs due to use in closure
104 error: aborting due to 8 previous errors
106 Some errors have detailed explanations: E0382, E0505.
107 For more information about an error, try `rustc --explain E0382`.