File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1174,7 +1174,7 @@ Erroneous code example:
1174
1174
1175
1175
```compile_fail
1176
1176
#[repr(i32)]
1177
- enum NightWatch {} // error: unsupported representation for zero-variant enum
1177
+ enum NightsWatch {} // error: unsupported representation for zero-variant enum
1178
1178
```
1179
1179
1180
1180
It is impossible to define an integer type to be used to represent zero-variant
@@ -1184,7 +1184,7 @@ two solutions. Either you add variants in your enum:
1184
1184
1185
1185
```
1186
1186
#[repr(i32)]
1187
- enum NightWatch {
1187
+ enum NightsWatch {
1188
1188
JonSnow,
1189
1189
Commander,
1190
1190
}
@@ -1193,7 +1193,7 @@ enum NightWatch {
1193
1193
or you remove the integer represention of your enum:
1194
1194
1195
1195
```
1196
- enum NightWatch {}
1196
+ enum NightsWatch {}
1197
1197
```
1198
1198
"## ,
1199
1199
You can’t perform that action at this time.
0 commit comments