]> git.proxmox.com Git - rustc.git/blob - src/test/ui/binding/expr-match-unique.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / binding / expr-match-unique.rs
1 // run-pass
2
3 // Tests for match as expressions resulting in boxed types
4 fn test_box() {
5 let res: Box<_> = match true { true => { Box::new(100) }, _ => panic!() };
6 assert_eq!(*res, 100);
7 }
8
9 pub fn main() { test_box(); }