rust/tests/ui/structs-enums/namespaced-enums.rs
2023-01-11 09:32:08 +00:00

18 lines
229 B
Rust

// run-pass
#![allow(dead_code)]
// pretty-expanded FIXME #23616
enum Foo {
A,
B(isize),
C { a: isize },
}
fn _foo (f: Foo) {
match f {
Foo::A | Foo::B(_) | Foo::C { .. } => {}
}
}
pub fn main() {}