From cffd4b699e4dab108c68292ea9b52cacf6da4fcf Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Thu, 23 Apr 2020 13:17:00 +0200 Subject: [PATCH] Improve E0567 explanation --- src/librustc_error_codes/error_codes/E0567.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/librustc_error_codes/error_codes/E0567.md b/src/librustc_error_codes/error_codes/E0567.md index ec1ed03c126e1..05cf8fed03160 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() {} ```