]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/regions-infer-borrow-scope-within-loop-ok.rs
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead...
[rust.git] / src / test / run-pass / regions-infer-borrow-scope-within-loop-ok.rs
index 1ecaf41702e0642a179c0dfc2885f92d2c22e3a9..f397b5124caf5b6ee9a23801844efe697da3a9cf 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn borrow<T>(x: &T) -> &T {x}
 
 pub fn main() {