summary refs log tree commit diff
path: root/src/test/ui/drop/drop-on-empty-block-exit.rs
blob: 1747bf029aa334672d86863ea962e0cf845b9991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]

#![feature(box_syntax)]

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

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