]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-feature-nll-overrides-migrate.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / borrowck-feature-nll-overrides-migrate.rs
index 4eefc5859ff54ae28a585495132d1f6534ea2a1d..a6f3905bebd53c908243c4a596a8a87a0fd2be6b 100644 (file)
@@ -20,8 +20,8 @@ fn main() {
         ref mut foo
             if {
                 (|| { let bar = foo; bar.take() })();
-                //[zflag]~^ ERROR cannot move out of borrowed content [E0507]
-                //[edition]~^^ ERROR cannot move out of borrowed content [E0507]
+                //[zflag]~^ ERROR cannot move out of `foo` in pattern guard [E0507]
+                //[edition]~^^ ERROR cannot move out of `foo` in pattern guard [E0507]
                 false
             } => {},
         Some(ref _s) => println!("Note this arm is bogus; the `Some` became `None` in the guard."),