]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/for.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / for.rs
index 919ae62a182564bd8bea4f14c7aa2e2e531284d6..3bf053eb874ce62496ffc1ac6426596b1468d5b9 100644 (file)
@@ -5,6 +5,6 @@ pub fn main() {
     // The below desugars to &(ref n, mut m).
     for (n, mut m) in &tups {
         //~^ ERROR cannot bind by-move and by-ref in the same pattern
-        //~| ERROR cannot move out of borrowed content
+        //~| ERROR cannot move out of a shared reference
     }
 }