about summary refs log tree commit diff
path: root/tests/ui/resolve/enums-are-namespaced-xc.rs
blob: 7797086d4a08e0716b3c28971e17954e392d72d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
//@ aux-build:namespaced_enums.rs
extern crate namespaced_enums;

fn main() {
    let _ = namespaced_enums::A;
    //~^ ERROR cannot find value `A`
    let _ = namespaced_enums::B(10);
    //~^ ERROR cannot find function, tuple struct or tuple variant `B`
    let _ = namespaced_enums::C { a: 10 };
    //~^ ERROR cannot find struct, variant or union type `C`
}