]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/issue-54597-reject-move-out-of-borrow-via-pat.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / issue-54597-reject-move-out-of-borrow-via-pat.stderr
index 519f1d6fb2791b3107f8530d56ea0b4456750dd9..6ba801b9714bf1ea00ed3cc97a44e45c0d403666 100644 (file)
@@ -1,10 +1,10 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of `*array` which is behind a shared reference
   --> $DIR/issue-54597-reject-move-out-of-borrow-via-pat.rs:14:13
    |
 LL |             *array
    |             ^^^^^^
    |             |
-   |             cannot move out of borrowed content
+   |             move occurs because `*array` has type `std::vec::Vec<Value>`, which does not implement the `Copy` trait
    |             help: consider removing the `*`: `array`
 
 error: aborting due to previous error