From 3014a5887d4785285a3f42e19f2de24e141e3eb8 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 2 May 2011 20:29:11 -0400 Subject: Add some tests of tag-export interaction --- src/test/compile-fail/export-no-tag-variants.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/test/compile-fail/export-no-tag-variants.rs (limited to 'src/test/compile-fail') diff --git a/src/test/compile-fail/export-no-tag-variants.rs b/src/test/compile-fail/export-no-tag-variants.rs new file mode 100644 index 00000000..69799802 --- /dev/null +++ b/src/test/compile-fail/export-no-tag-variants.rs @@ -0,0 +1,17 @@ +// xfail-boot +// error-pattern: unresolved name + +// Tag variants are not exported with their tags. This allows for a +// simple sort of ADT. + +mod foo { + export t; + + tag t { + t1; + } +} + +fn main() { + auto x = foo.t1; +} -- cgit v1.2.3