]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/moves-based-on-type-move-out-of-closure-env-issue-1965.rs
fix cfail tests
[rust.git] / src / test / compile-fail / moves-based-on-type-move-out-of-closure-env-issue-1965.rs
index f9614574abda970b749a44f43b6781085caa7e74..ab762332ee43da3ba48d32eeca32b4ca3cfd4b25 100644 (file)
@@ -14,5 +14,5 @@ fn test(_x: Box<uint>) {}
 
 fn main() {
     let i = box 3;
-    let _f = || test(i); //~ ERROR cannot move out
+    let _f = |&:| test(i); //~ ERROR cannot move out
 }