]> git.lizzy.rs Git - rust.git/blob - src/test/ui/binding/expr-match-unique.rs
Rollup merge of #62806 - mati865:clippy, r=TimNN
[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(); }