]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/issues/issue-27282-move-ref-mut-into-guard.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / issues / issue-27282-move-ref-mut-into-guard.rs
index 1312aff30fecf0b2377b6a8afbfe49912e7fda73..e570b04a2beade6c3044b7cf97aea0ca73799173 100644 (file)
@@ -12,7 +12,7 @@ fn main() {
         None => {},
         ref mut foo
             if { (|| { let bar = foo; bar.take() })(); false } => {},
-        //~^ ERROR cannot move out of borrowed content [E0507]
+        //~^ ERROR cannot move out of `foo` in pattern guard [E0507]
         Some(s) => std::process::exit(*s),
     }
 }