rust/tests/ui/drop/drop-on-empty-block-exit.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
196 B
Rust
Raw Normal View History

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