// 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);
}