]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-40402-ref-hints/issue-40402-1.nll.stderr
Update output for borrowck=migrate compare mode.
[rust.git] / src / test / ui / issues / issue-40402-ref-hints / issue-40402-1.nll.stderr
index 9020d3778c3730820347651be4554a9b7d9c1f0b..22fcffb9527a4b651c54fea1bb424bfdb2770301 100644 (file)
@@ -7,6 +7,15 @@ LL |     let e = f.v[0]; //~ ERROR cannot move out of indexed content
    |             cannot move out of borrowed content
    |             help: consider borrowing here: `&f.v[0]`
 
-error: aborting due to previous error
+error[E0507]: cannot move out of data in a `&` reference
+  --> $DIR/issue-40402-1.rs:19:13
+   |
+LL |     let e = f.v[0]; //~ ERROR cannot move out of indexed content
+   |             ^^^^^^
+   |             |
+   |             cannot move out of data in a `&` reference
+   |             cannot move
+
+error: aborting due to 2 previous errors
 
 For more information about this error, try `rustc --explain E0507`.