/src/test/run-pass/export-abstract-tag.rs
http://github.com/jruderman/rust · Rust · 13 lines · 7 code · 4 blank · 2 comment · 0 complexity · 1d45e2b20c6b5f986175ae85bc60edd5 MD5 · raw file
- // We can export tags without exporting the variants to create a simple
- // sort of ADT.
- mod foo {
- export t;
- export f;
- enum t { t1, }
- fn f() -> t { return t1; }
- }
- fn main() { let v: foo::t = foo::f(); }