From: Guillaume Gomez Date: Thu, 23 Apr 2020 11:17:00 +0000 (+0200) Subject: Improve E0567 explanation X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=cffd4b699e4dab108c68292ea9b52cacf6da4fcf;p=rust.git Improve E0567 explanation --- 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() {} ```