]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-2590.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / issues / issue-2590.stderr
index e19e83dc747e5eada83c16690a702a8783050309..3517d92403fbba2ac415b100146def4552107f43 100644 (file)
@@ -1,8 +1,8 @@
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of `self.tokens` which is behind a shared reference
   --> $DIR/issue-2590.rs:11:9
    |
 LL |         self.tokens
-   |         ^^^^^^^^^^^ cannot move out of borrowed content
+   |         ^^^^^^^^^^^ move occurs because `self.tokens` has type `std::vec::Vec<isize>`, which does not implement the `Copy` trait
 
 error: aborting due to previous error