]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/expr-match-unique.rs
Merge commit '09bd400243ed6f7059fedc0c1623aae3792521d6' into clippyup
[rust.git] / src / test / ui / binding / expr-match-unique.rs
1 // run-pass
2 #![feature(box_syntax)]
3
4 // Tests for match as expressions resulting in boxed types
5 fn test_box() {
6     let res: Box<_> = match true { true => { box 100 }, _ => panic!() };
7     assert_eq!(*res, 100);
8 }
9
10 pub fn main() { test_box(); }