]> git.lizzy.rs Git - rust.git/blobdiff - src/test/run-pass/expr-match-unique.rs
cleanup: s/impl Copy/#[derive(Copy)]/g
[rust.git] / src / test / run-pass / expr-match-unique.rs
index 85c6652c5aab3801689edb05b858f91acdefc879..7958f4927daf84aab270ccf3873f4e48f6e11bdc 100644 (file)
@@ -8,14 +8,13 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-
-
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // Tests for match as expressions resulting in boxed types
 fn test_box() {
-    let res = match true { true => { ~100 }, _ => fail!() };
-    assert_eq!(*res, 100);
+    let res = match true { true => { box 100i }, _ => panic!() };
+    assert_eq!(*res, 100i);
 }
 
 pub fn main() { test_box(); }