2014-11-25 12:00:46 -06:00
|
|
|
// aux-build:namespaced_enums.rs
|
|
|
|
extern crate namespaced_enums;
|
|
|
|
|
|
|
|
fn main() {
|
2016-11-30 16:35:25 -06:00
|
|
|
let _ = namespaced_enums::A;
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR cannot find value `A`
|
2016-11-30 16:35:25 -06:00
|
|
|
let _ = namespaced_enums::B(10);
|
2019-10-14 19:20:50 -05:00
|
|
|
//~^ ERROR cannot find function, tuple struct or tuple variant `B`
|
2016-09-14 16:51:46 -05:00
|
|
|
let _ = namespaced_enums::C { a: 10 };
|
2017-11-20 06:13:27 -06:00
|
|
|
//~^ ERROR cannot find struct, variant or union type `C`
|
2014-11-25 12:00:46 -06:00
|
|
|
}
|