rust/src/test/ui/drop/drop-on-empty-block-exit.rs
2019-07-27 18:56:16 +03:00

12 lines
213 B
Rust

// 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) => { } }
}