]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/span/borrowck-call-is-borrow-issue-12224.rs
Rollup merge of #87922 - Manishearth:c-enum-target-spec, r=nagisa,eddyb
[rust.git] / src / test / ui / span / borrowck-call-is-borrow-issue-12224.rs
index 6099263ccd0e95bfb7a28abc82f8b70751c58fb0..938fdaf11f09ba32d32a798cefb2df89d2c40538 100644 (file)
@@ -55,7 +55,7 @@ fn foo<F>(_: F) where F: FnMut(Box<dyn FnMut(isize)>, isize) {}
     f(Box::new(|a| {
         //~^ ERROR cannot move out of `f` because it is borrowed
         foo(f);
-        //~^ ERROR cannot move out of captured variable in an `FnMut` closure
+        //~^ ERROR cannot move out of `f`, a captured variable in an `FnMut` closure
     }), 3);
 }