We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 763f923 commit 92e8228Copy full SHA for 92e8228
src/librustc_typeck/diagnostics.rs
@@ -1174,7 +1174,7 @@ Erroneous code example:
1174
1175
```compile_fail
1176
#[repr(i32)]
1177
-enum NightWatch {} // error: unsupported representation for zero-variant enum
+enum NightsWatch {} // error: unsupported representation for zero-variant enum
1178
```
1179
1180
It is impossible to define an integer type to be used to represent zero-variant
@@ -1184,16 +1184,16 @@ two solutions. Either you add variants in your enum:
1184
1185
1186
1187
-enum NightWatch {
1188
- JohnSnow,
+enum NightsWatch {
+ JonSnow,
1189
Commander,
1190
}
1191
1192
1193
or you remove the integer represention of your enum:
1194
1195
1196
-enum NightWatch {}
+enum NightsWatch {}
1197
1198
"##,
1199
0 commit comments