about summary refs log tree commit diff
path: root/src/librustc_error_codes
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-04-23 15:57:19 +0200
committerGitHub <noreply@github.com>2020-04-23 15:57:19 +0200
commit47e2687a4eaf190ebd7eebdee7c32e839a6f14cf (patch)
tree8e0197c08f480cf9e67e32e05b25afa61fe043c8 /src/librustc_error_codes
parent98cadb28ac9b27e58c5c5c5076132b9aba08a090 (diff)
parentcffd4b699e4dab108c68292ea9b52cacf6da4fcf (diff)
downloadrust-47e2687a4eaf190ebd7eebdee7c32e839a6f14cf.tar.gz
rust-47e2687a4eaf190ebd7eebdee7c32e839a6f14cf.zip
Rollup merge of #71461 - GuillaumeGomez:improve-e0567, r=Dylan-DPC
Improve E0567 explanation

r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes')
-rw-r--r--src/librustc_error_codes/error_codes/E0567.md6
1 files 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 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<T> {} // 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() {}
 ```