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

17 lines
247 B
Rust

// run-pass
// aux-build:namespaced_enums.rs
// pretty-expanded FIXME #23616
extern crate namespaced_enums;
use namespaced_enums::Foo;
fn _foo (f: Foo) {
match f {
Foo::A | Foo::B(_) | Foo::C { .. } => {}
}
}
pub fn main() {}