1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// We can export tags without exporting the variants to create a simple // sort of ADT. mod foo { export t; export f; tag t { t1; } fn f() -> t { ret t1; } } fn main() { let foo::t v = foo::f(); }