aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'src/test')
-rw-r--r--src/test/compile-fail/export-tag-variant.rs17
1 files changed, 17 insertions, 0 deletions
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;
+}