]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/unboxed-closures-move-upvar-from-non-once-ref-closure.rs
Update tests for changes to cannot move errors
[rust.git] / src / test / ui / borrowck / unboxed-closures-move-upvar-from-non-once-ref-closure.rs
index f45aa90b607e8fc921048a2f20fc760ed76b7caa..d54b09c5da95ac95f8ed2d2c5e0ab32bf122ecef 100644 (file)
@@ -9,6 +9,6 @@ fn main() {
     let y = vec![format!("World")];
     call(|| {
         y.into_iter();
-        //~^ ERROR cannot move out of captured variable in an `Fn` closure
+        //~^ ERROR cannot move out of `y`, a captured variable in an `Fn` closure
     });
 }