]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/for.stderr
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / for.stderr
index d9a59e63453c2104f7806b186617c6f1abe29730..8a1ded1d5b94a2c2dcaba369a51e57ccfc3c6814 100644 (file)
@@ -6,19 +6,14 @@ LL |     for (n, mut m) in &tups {
    |          |
    |          both by-ref and by-move used
 
-error[E0507]: cannot move out of borrowed content
+error[E0507]: cannot move out of a shared reference
   --> $DIR/for.rs:6:23
    |
 LL |     for (n, mut m) in &tups {
-   |             -----     ^^^^^ cannot move out of borrowed content
+   |             -----     ^^^^^
    |             |
    |             data moved here
-   |
-note: move occurs because `m` has type `Foo`, which does not implement the `Copy` trait
-  --> $DIR/for.rs:6:13
-   |
-LL |     for (n, mut m) in &tups {
-   |             ^^^^^
+   |             move occurs because `m` has type `Foo`, which does not implement the `Copy` trait
 
 error: aborting due to 2 previous errors