]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/for.rs
New upstream version 1.36.0+dfsg1
[rustc.git] / src / test / ui / rfc-2005-default-binding-mode / for.rs
index 2fa7852635c30287cc15689fc546dc788ad7bcd7..919ae62a182564bd8bea4f14c7aa2e2e531284d6 100644 (file)
@@ -5,5 +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
     }
 }