rust/tests/ui/resolve/enums-are-namespaced-xc.rs

12 lines
362 B
Rust
Raw Normal View History

//@ aux-build:namespaced_enums.rs
extern crate namespaced_enums;
fn main() {
let _ = namespaced_enums::A;
2017-11-20 12:13:27 +00:00
//~^ 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 };
2017-11-20 12:13:27 +00:00
//~^ ERROR cannot find struct, variant or union type `C`
}