From 57c2712895d547870694fdb3fc0b8a23e68a447f Mon Sep 17 00:00:00 2001 From: DeeDeeG Date: Tue, 21 Apr 2020 14:05:32 -0400 Subject: Improve E0308 error message wording again --- src/librustc_error_codes/error_codes/E0308.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/librustc_error_codes/error_codes') diff --git a/src/librustc_error_codes/error_codes/E0308.md b/src/librustc_error_codes/error_codes/E0308.md index b2c84370490..e2c40f03019 100644 --- a/src/librustc_error_codes/error_codes/E0308.md +++ b/src/librustc_error_codes/error_codes/E0308.md @@ -12,8 +12,7 @@ let x: i32 = "I am not a number!"; // type `i32` assigned to variable `x` ``` -This error occurs when the compiler was unable to infer the concrete type of a -variable. It can happen in several cases, the most common being a mismatch -between the type that the compiler inferred for a variable based on its -initializing expression, on the one hand, and the type the author explicitly -assigned to the variable, on the other hand. +This error occurs when the compiler is unable to infer the concrete type of a +variable. It can occur in several cases, the most common being a mismatch +between two types: the type the author explicitly assigned, and the type the +compiler inferred. -- cgit 1.4.1-3-g733a5 From cffd4b699e4dab108c68292ea9b52cacf6da4fcf Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 23 Apr 2020 13:17:00 +0200 Subject: Improve E0567 explanation --- src/librustc_error_codes/error_codes/E0567.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/librustc_error_codes/error_codes') diff --git a/src/librustc_error_codes/error_codes/E0567.md b/src/librustc_error_codes/error_codes/E0567.md index ec1ed03c126..05cf8fed031 100644 --- a/src/librustc_error_codes/error_codes/E0567.md +++ b/src/librustc_error_codes/error_codes/E0567.md @@ -6,8 +6,7 @@ Erroneous code example: #![feature(optin_builtin_traits)] auto trait Generic {} // error! - -fn main() {} +# fn main() {} ``` Since an auto trait is implemented on all existing types, the @@ -20,6 +19,5 @@ To fix this issue, just remove the generics: #![feature(optin_builtin_traits)] auto trait Generic {} // ok! - -fn main() {} +# fn main() {} ``` -- cgit 1.4.1-3-g733a5