]> 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 3ee0a232d19c06377253a9bd04172a5730bfa4e3..7958f4927daf84aab270ccf3873f4e48f6e11bdc 100644 (file)
@@ -8,10 +8,12 @@
 // 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 => { box 100i }, _ => fail!() };
+    let res = match true { true => { box 100i }, _ => panic!() };
     assert_eq!(*res, 100i);
 }