rust/tests/pass/small_enum_size_bug.rs
2022-06-01 10:53:38 -04:00

14 lines
160 B
Rust

#[allow(dead_code)]
enum E {
A = 1,
B = 2,
C = 3,
}
fn main() {
let enone = None::<E>;
if let Some(..) = enone {
panic!();
}
}