]> git.lizzy.rs Git - rust.git/blob - src/test/ui/drop/drop-on-empty-block-exit.rs
Rollup merge of #106043 - c410-f3r:moar-errors, r=petrochenkov
[rust.git] / src / test / ui / drop / drop-on-empty-block-exit.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3 #![allow(non_camel_case_types)]
4
5 enum t { foo(Box<isize>), }
6
7 pub fn main() {
8     let tt = t::foo(Box::new(10));
9     match tt { t::foo(_z) => { } }
10 }