1 error[E0382]: borrow of moved value: `arc_v`
2 --> $DIR/no-reuse-move-arc.rs:22:18
4 LL | thread::spawn(move|| {
5 | ------ value moved into closure here
6 LL | assert_eq!((*arc_v)[3], 4);
7 | ----- variable moved due to use in closure
9 LL | assert_eq!((*arc_v)[2], 3); //~ ERROR use of moved value: `arc_v`
10 | ^^^^^ value borrowed here after move
12 = note: move occurs because `arc_v` has type `std::sync::Arc<std::vec::Vec<i32>>`, which does not implement the `Copy` trait
14 error[E0382]: borrow of moved value: `arc_v`
15 --> $DIR/no-reuse-move-arc.rs:24:23
17 LL | thread::spawn(move|| {
18 | ------ value moved into closure here
19 LL | assert_eq!((*arc_v)[3], 4);
20 | ----- variable moved due to use in closure
22 LL | println!("{:?}", *arc_v); //~ ERROR use of moved value: `arc_v`
23 | ^^^^^ value borrowed here after move
25 = note: move occurs because `arc_v` has type `std::sync::Arc<std::vec::Vec<i32>>`, which does not implement the `Copy` trait
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0382`.