]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-2590.nll.stderr
Update output for borrowck=migrate compare mode.
[rust.git] / src / test / ui / issues / issue-2590.nll.stderr
index fa2df26498a061dc0fa0ac12d94550dcb349c01f..ae726d26d072b80203d31f10cb28fc6eb1cd7b5e 100644 (file)
@@ -4,6 +4,17 @@ error[E0507]: cannot move out of borrowed content
 LL |         self.tokens //~ ERROR cannot move out of borrowed content
    |         ^^^^^^^^^^^ cannot move out of borrowed content
 
-error: aborting due to previous error
+error[E0507]: cannot move out of `self.tokens` which is behind a `&` reference
+  --> $DIR/issue-2590.rs:22:9
+   |
+LL |     fn parse(&self) -> Vec<isize> {
+   |              ----- help: consider changing this to be a mutable reference: `&mut self`
+LL |         self.tokens //~ ERROR cannot move out of borrowed content
+   |         ^^^^^^^^^^^
+   |         |
+   |         cannot move out of `self.tokens` which is behind a `&` reference
+   |         `self` is a `&` reference, so the data it refers to cannot be moved
+
+error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0507`.