-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Rust detects a conflict between non-conflicting implementations of a trait #92894
Comments
@rustbot label +A-impl-trait +T-compiler |
Hello, Since I haven't received much feedback for this issue, I'm just trying to prop it up a little. Does anyone have an idea where I could try to hunt for this bug? Thank you :) |
It does seem to be a duplicate of #20400 ... So I guess no hope of that being fixed in stable anytime soon :( I was indeed hoping this trick would let me achieve (very) limited specialization, hence the naming in the minimal example |
You have this trick that enables to work around this issue: https://stackoverflow.com/questions/40392524/conflicting-trait-implementations-even-though-associated-types-differ/40408431#40408431 I think this particular issue can be closed as duplicate. |
And how would be the workaround for a different trait, be it |
The conflicting impl error is legitimate in this case: a struct could impl both |
Closing this as duplicate of #20400, and there is a valid case where the implements conflict. |
Hello,
When trying to do some type-fu in a much larger project, I stumbled on a conflict detection which shouldn't happen. Here's a minimal version of the issue:
Rust responds with
but the implementations don't have any intersection, and shouldn't conflict.
You can also check it out on this playground, where you can see that the conflict is also mis-detected on nightly.
The text was updated successfully, but these errors were encountered: