diff options
Diffstat (limited to 'tests/ui/drop/drop-on-empty-block-exit.rs')
-rw-r--r-- | tests/ui/drop/drop-on-empty-block-exit.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/drop/drop-on-empty-block-exit.rs b/tests/ui/drop/drop-on-empty-block-exit.rs new file mode 100644 index 000000000..ef3a90a53 --- /dev/null +++ b/tests/ui/drop/drop-on-empty-block-exit.rs @@ -0,0 +1,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) => { } } +} |