Files
rust/src/test/ui/drop/drop-on-empty-block-exit.rs

13 lines
213 B
Rust
Raw Normal View History

// run-pass
// pretty-expanded FIXME #23616
#![allow(non_camel_case_types)]
#![feature(box_syntax)]
enum t { foo(Box<isize>), }
2013-08-17 08:37:42 -07:00
pub fn main() {
let tt = t::foo(box 10);
match tt { t::foo(_z) => { } }
2013-08-17 08:37:42 -07:00
}