mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
12 lines
361 B
Rust
12 lines
361 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, tuple struct or tuple variant `B`
|
|
let _ = namespaced_enums::C { a: 10 };
|
|
//~^ ERROR cannot find struct, variant or union type `C`
|
|
}
|