mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-30 22:47:32 +00:00
Done with ```bash sd '//@ pretty-expanded.*\n' '' tests/ui/**/*.rs ``` and ``` sd '//@pretty-expanded.*\n' '' tests/ui/**/*.rs ```
26 lines
374 B
Rust
26 lines
374 B
Rust
//@ run-pass
|
|
//@ aux-build:namespaced_enums.rs
|
|
|
|
|
|
extern crate namespaced_enums;
|
|
|
|
fn _f(f: namespaced_enums::Foo) {
|
|
use namespaced_enums::Foo::*;
|
|
|
|
match f {
|
|
A | B(_) | C { .. } => {}
|
|
}
|
|
}
|
|
|
|
mod m {
|
|
pub use namespaced_enums::Foo::*;
|
|
}
|
|
|
|
fn _f2(f: namespaced_enums::Foo) {
|
|
match f {
|
|
m::A | m::B(_) | m::C { .. } => {}
|
|
}
|
|
}
|
|
|
|
pub fn main() {}
|