Skip to content

Commit

Permalink
Rollup merge of #71461 - GuillaumeGomez:improve-e0567, r=Dylan-DPC
Browse files Browse the repository at this point in the history
Improve E0567 explanation

r? @Dylan-DPC
  • Loading branch information
Dylan-DPC authored Apr 23, 2020
2 parents 98cadb2 + cffd4b6 commit 47e2687
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustc_error_codes/error_codes/E0567.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -20,6 +19,5 @@ To fix this issue, just remove the generics:
#![feature(optin_builtin_traits)]
auto trait Generic {} // ok!
fn main() {}
# fn main() {}
```

0 comments on commit 47e2687

Please sign in to comment.