From 4761de640333971f472ba076c5334357d689cc37 Mon Sep 17 00:00:00 2001 From: Hendrik Sollich Date: Tue, 7 Jun 2016 11:30:38 +0200 Subject: [PATCH 1/2] Fixed: conflicting spelling of "Jon Snow" --- src/librustc_typeck/diagnostics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 67a082ee52066..7eea9b06885fe 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1185,7 +1185,7 @@ two solutions. Either you add variants in your enum: ``` #[repr(i32)] enum NightWatch { - JohnSnow, + JonSnow, Commander, } ``` From af691a79c871e9153f665176ad3e3c9a47963c8d Mon Sep 17 00:00:00 2001 From: Hendrik Sollich Date: Tue, 7 Jun 2016 15:26:41 +0200 Subject: [PATCH 2/2] Fixed: It's call "Night's Watch" --- src/librustc_typeck/diagnostics.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc_typeck/diagnostics.rs b/src/librustc_typeck/diagnostics.rs index 7eea9b06885fe..7181f514ed94d 100644 --- a/src/librustc_typeck/diagnostics.rs +++ b/src/librustc_typeck/diagnostics.rs @@ -1174,7 +1174,7 @@ Erroneous code example: ```compile_fail #[repr(i32)] -enum NightWatch {} // error: unsupported representation for zero-variant enum +enum NightsWatch {} // error: unsupported representation for zero-variant enum ``` 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: ``` #[repr(i32)] -enum NightWatch { +enum NightsWatch { JonSnow, Commander, } @@ -1193,7 +1193,7 @@ enum NightWatch { or you remove the integer represention of your enum: ``` -enum NightWatch {} +enum NightsWatch {} ``` "##,