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