mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 18:23:49 +00:00
17 lines
250 B
Rust
17 lines
250 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() {}
|