]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/no-capture-arc.stderr
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / no-capture-arc.stderr
index 37032e73f1900c2a21bdfc55821ea77ed476fb52..9ae41e78c227dc769e9b2bde8ea00f4a6dcb6131 100644 (file)
@@ -3,7 +3,7 @@ error[E0382]: borrow of moved value: `arc_v`
    |
 LL |     let arc_v = Arc::new(v);
    |         ----- move occurs because `arc_v` has type `Arc<Vec<i32>>`, which does not implement the `Copy` trait
-LL | 
+LL |
 LL |     thread::spawn(move|| {
    |                   ------ value moved into closure here
 LL |         assert_eq!((*arc_v)[3], 4);
@@ -17,7 +17,7 @@ note: deref defined here
   --> $SRC_DIR/alloc/src/sync.rs:LL:COL
    |
 LL |     type Target = T;
-   |     ^^^^^^^^^^^^^^^^
+   |     ^^^^^^^^^^^
 
 error: aborting due to previous error