File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1174,7 +1174,7 @@ Erroneous code example:
11741174
11751175```compile_fail
11761176#[repr(i32)]
1177- enum NightWatch {} // error: unsupported representation for zero-variant enum
1177+ enum NightsWatch {} // error: unsupported representation for zero-variant enum
11781178```
11791179
11801180It 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:
11841184
11851185```
11861186#[repr(i32)]
1187- enum NightWatch {
1188- JohnSnow ,
1187+ enum NightsWatch {
1188+ JonSnow ,
11891189 Commander,
11901190}
11911191```
11921192
11931193or you remove the integer represention of your enum:
11941194
11951195```
1196- enum NightWatch {}
1196+ enum NightsWatch {}
11971197```
11981198"## ,
11991199
You can’t perform that action at this time.
0 commit comments