Improve E0567 explanation
This commit is contained in:
parent
2dc5b602ee
commit
cffd4b699e
@ -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…
x
Reference in New Issue
Block a user