]> 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 1834b9bea9a577cbb0eb3276ce10b0beda0e9f8a..e9aa7939f7778e3bf8ae82448550baf5d7cc760f 100644 (file)
@@ -1,14 +1,14 @@
 error[E0507]: cannot move out of an `Rc`
-  --> $DIR/issue-52086.rs:20: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:24: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