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