fork/rust
git clone https://git.julia.blue/fork/rust
49cae55760d
1.44.0
1error[E0382]: borrow of moved value: `arc_v` 2 --> $DIR/no-reuse-move-arc.rs:12:18 3 | 4LL | let arc_v = Arc::new(v); 5 | ----- move occurs because `arc_v` has type `std::sync::Arc<std::vec::Vec<i32>>`, which does not implement the `Copy` trait 6LL | 7LL | thread::spawn(move|| { 8 | ------ value moved into closure here 9LL | assert_eq!((*arc_v)[3], 4); 10 | ----- variable moved due to use in closure 11... 12LL | assert_eq!((*arc_v)[2], 3); 13 | ^^^^^ value borrowed here after move 14 15error: aborting due to previous error 16 17For more information about this error, try `rustc --explain E0382`.