]> 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 da453fb1f921fb69bd70a036ae0d934148b3b4ee..e9aa7939f7778e3bf8ae82448550baf5d7cc760f 100644 (file)
@@ -2,13 +2,13 @@ error[E0507]: cannot move out of an `Rc`
   --> $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: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