diff options
| author | Brian Anderson <[email protected]> | 2011-05-02 20:29:11 -0400 |
|---|---|---|
| committer | Brian Anderson <[email protected]> | 2011-05-02 22:06:35 -0400 |
| commit | 3014a5887d4785285a3f42e19f2de24e141e3eb8 (patch) | |
| tree | 103cec44e7250a4b8d428ed393c4e6a197d62bad /src/test/compile-fail | |
| parent | Initial sketch of snapshot support code, based on code from marijn. (diff) | |
| download | rust-3014a5887d4785285a3f42e19f2de24e141e3eb8.tar.xz rust-3014a5887d4785285a3f42e19f2de24e141e3eb8.zip | |
Add some tests of tag-export interaction
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/export-no-tag-variants.rs | 17 |
1 files changed, 17 insertions, 0 deletions
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; +} |