Rollup merge of #71461 - GuillaumeGomez:improve-e0567, r=Dylan-DPC
Improve E0567 explanation r? @Dylan-DPC
This commit is contained in:
commit
47e2687a4e
@ -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