]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/borrowck-borrow-from-expr-block.rs
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead...
[rust.git] / src / test / run-pass / borrowck-borrow-from-expr-block.rs
index 038f9e5c9ab43b7c94e781e08e63296c4f7d6e7d..9fcd87418bee30a65e2db03a96c89c65fb4ac327 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn borrow<F>(x: &int, f: F) where F: FnOnce(&int) {
     f(x)