]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no-capture-arc.nll.stderr
Rollup merge of #57107 - mjbshaw:thread_local_test, r=nikomatsakis
[rust.git] / src / test / ui / no-capture-arc.nll.stderr
1 error[E0382]: borrow of moved value: `arc_v`
2   --> $DIR/no-capture-arc.rs:14:18
3    |
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
8 ...
9 LL |     assert_eq!((*arc_v)[2], 3);
10    |                  ^^^^^ value borrowed here after move
11    |
12    = note: move occurs because `arc_v` has type `std::sync::Arc<std::vec::Vec<i32>>`, which does not implement the `Copy` trait
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0382`.