about summary refs log tree commit diff
path: root/src/librustc_error_codes/error_codes
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2020-04-23 13:17:00 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2020-04-23 13:17:00 +0200
commitcffd4b699e4dab108c68292ea9b52cacf6da4fcf (patch)
tree7fb408e16dc6b78b2f3def7e91f64db1e199b61b /src/librustc_error_codes/error_codes
parent2dc5b602eee35d70e8e6e506a7ea07b6c7e0197d (diff)
downloadrust-cffd4b699e4dab108c68292ea9b52cacf6da4fcf.tar.gz
rust-cffd4b699e4dab108c68292ea9b52cacf6da4fcf.zip
Improve E0567 explanation
Diffstat (limited to 'src/librustc_error_codes/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() {}
 ```