Improve E0567 explanation

This commit is contained in:
Guillaume Gomez 2020-04-23 13:17:00 +02:00
parent 2dc5b602ee
commit cffd4b699e

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