]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/issue-52086.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / nll / issue-52086.stderr
index ed4171ff14261e4356de2ff27a5a91bc73f2c205..e9aa7939f7778e3bf8ae82448550baf5d7cc760f 100644 (file)
@@ -1,14 +1,14 @@
 error[E0507]: cannot move out of an `Rc`
-  --> $DIR/issue-52086.rs:10:10
+  --> $DIR/issue-52086.rs:8:10
    |
 LL |     drop(x.field);
-   |          ^^^^^^^ cannot move out of an `Rc`
+   |          ^^^^^^^ move occurs because value has type `std::vec::Vec<i32>`, which does not implement the `Copy` trait
 
 error[E0507]: cannot move out of an `Arc`
-  --> $DIR/issue-52086.rs:14:10
+  --> $DIR/issue-52086.rs:12:10
    |
 LL |     drop(y.field);
-   |          ^^^^^^^ cannot move out of an `Arc`
+   |          ^^^^^^^ move occurs because value has type `std::vec::Vec<i32>`, which does not implement the `Copy` trait
 
 error: aborting due to 2 previous errors