We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388ccda commit 790178fCopy full SHA for 790178f
src/doc/reference.md
@@ -1118,6 +1118,16 @@ type Point = (u8, u8);
1118
let p: Point = (41, 68);
1119
```
1120
1121
+Currently a type alias to an enum type cannot be used to qualify the
1122
+constructors:
1123
+
1124
+```
1125
+enum E { A }
1126
+type F = E;
1127
+let _: F = E::A; // OK
1128
+// let _: F = F::A; // Doesn't work
1129
1130
1131
### Structs
1132
1133
A _struct_ is a nominal [struct type](#struct-types) defined with the
0 commit comments