summaryrefslogtreecommitdiffstats
path: root/src/test/ui/structs-enums/namespaced-enum-glob-import-xcrate.rs
blob: d2ccadea00778f26fc8974a5226d1a43f0273490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// run-pass
// aux-build:namespaced_enums.rs

// pretty-expanded FIXME #23616

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() {}