2 #![feature(box_syntax)]
3 #![feature(box_patterns)]
5 #[derive(Debug, PartialEq)]
12 let a = box Test::Foo(10);
13 let b = box Test::Bar(-20);
15 (_, box Test::Foo(_)) => unreachable!(),
16 (box Test::Foo(x), b) => {
18 assert_eq!(b, box Test::Bar(-20));