Rollup merge of #71461 - GuillaumeGomez:improve-e0567, r=Dylan-DPC

Improve E0567 explanation

r? @Dylan-DPC
This commit is contained in:
Dylan DPC 2020-04-23 15:57:19 +02:00 committed by GitHub
commit 47e2687a4e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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() {}
```