]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/nll/match-guards-always-borrow.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / nll / match-guards-always-borrow.rs
index 5900dc3ade0301e564bc077d04f38c49a6288b7f..d423730bdbc358f63a6e99b730cb382a07d4f368 100644 (file)
@@ -8,7 +8,7 @@ fn should_reject_destructive_mutate_in_guard() {
         None => {},
         ref mut foo if {
             (|| { let bar = foo; bar.take() })();
-            //~^ ERROR cannot move out of borrowed content [E0507]
+            //~^ ERROR cannot move out of `foo` in pattern guard [E0507]
             false } => { },
         Some(s) => std::process::exit(*s),
     }