summaryrefslogtreecommitdiffstats
path: root/src/test/ui/drop/drop-on-empty-block-exit.rs
blob: ef3a90a53a6a0241b85c0afdeab2dfbfabf44fa7 (plain)
1
2
3
4
5
6
7
8
9
10
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]

enum t { foo(Box<isize>), }

pub fn main() {
    let tt = t::foo(Box::new(10));
    match tt { t::foo(_z) => { } }
}