-
Notifications
You must be signed in to change notification settings - Fork 13.3k
redundant E0210 (coherence) after E0120 (blanket Drop impl) #36061
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
Comments
|
Current output:
I personally think E0210 should be the emitted error here. |
I personally feel like having both E0210 and E0120 here is fine (but wouldn't be against fixing), although maybe we should modify E0120 to point at the type param def span. Other than that, the verbosity caused by this specific case isn't terrible, I think. We should also tweak the wording for the E0120 entry because it only accounts for trying to do this on a trait directly, whereas the error triggers for anything that isn't an ADT. Maybe what we should do is have a new error code for this specific case 🤷 |
See #98996 |
The text was updated successfully, but these errors were encountered: