]> git.lizzy.rs Git - rust.git/commitdiff
Improve E0567 explanation
authorGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 23 Apr 2020 11:17:00 +0000 (13:17 +0200)
committerGuillaume Gomez <guillaume1.gomez@gmail.com>
Thu, 23 Apr 2020 11:17:00 +0000 (13:17 +0200)
src/librustc_error_codes/error_codes/E0567.md

index ec1ed03c126e13d8fe5272f8c28137293e3b6d3e..05cf8fed031609a3d87ba37edf7cebf4ea893019 100644 (file)
@@ -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() {}
 ```