From a6972102342611afb6647b34714556262de1e084 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 1 May 2011 16:01:27 -0400 Subject: Hide unexported tag variants --- src/test/compile-fail/export-tag-variant.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/compile-fail/export-tag-variant.rs (limited to 'src/test') diff --git a/src/test/compile-fail/export-tag-variant.rs b/src/test/compile-fail/export-tag-variant.rs new file mode 100644 index 00000000..c37dac2e --- /dev/null +++ b/src/test/compile-fail/export-tag-variant.rs @@ -0,0 +1,17 @@ +// xfail-boot +// error-pattern: unresolved name + +mod foo { + export x; + + fn x() { + } + + tag y { + y1; + } +} + +fn main() { + auto z = foo.y1; +} -- cgit v1.2.3