rust/src/test/ui/resolve/enums-are-namespaced-xc.rs
2018-12-25 21:08:33 -07:00

12 lines
330 B
Rust

// 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 `B`
let _ = namespaced_enums::C { a: 10 };
//~^ ERROR cannot find struct, variant or union type `C`
}