Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve E0567 explanation #71461

Merged
merged 1 commit into from
Apr 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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() {}
```