Improve E0567 explanation
This commit is contained in:
parent
2dc5b602ee
commit
cffd4b699e
1 changed files with 2 additions and 4 deletions
|
|
@ -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() {}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue