diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/resolve/enums-are-namespaced-xc.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/resolve/enums-are-namespaced-xc.rs b/src/test/ui/resolve/enums-are-namespaced-xc.rs new file mode 100644 index 000000000..dfc16d6ce --- /dev/null +++ b/src/test/ui/resolve/enums-are-namespaced-xc.rs @@ -0,0 +1,11 @@ +// 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` +} |