]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-in-static.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / borrowck-in-static.rs
index c468740bc3bf573252005940caaf7fcae533b462..a45f7b18e07d689e6c7929824c811c15f10c196d 100644 (file)
@@ -2,7 +2,7 @@
 
 static FN : &'static (dyn Fn() -> (Box<dyn Fn()->Box<i32>>) + Sync) = &|| {
     let x = Box::new(0);
-    Box::new(|| x) //~ ERROR cannot move out of captured variable in an `Fn` closure
+    Box::new(|| x) //~ ERROR cannot move out of `x`, a captured variable in an `Fn` closure
 };
 
 fn main() {