]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/access-mode-in-closures.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / access-mode-in-closures.stderr
index 9976dfe946fd985d99a97a2beec344b5eb47eb4a..424d7ebb37444a49120f747197782a8df2e68534 100644 (file)
@@ -1,10 +1,12 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of `s.0` which is behind a shared reference
   --> $DIR/access-mode-in-closures.rs:8:15
    |
 LL |         match *s { S(v) => v }
-   |               ^^     - hint: to prevent move, use `ref v` or `ref mut v`
-   |               |
-   |               cannot move out of borrowed content
+   |               ^^     -
+   |               |      |
+   |               |      data moved here
+   |               |      move occurs because `v` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
+   |               help: consider removing the `*`: `s`
 
 error: aborting due to previous error