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

Conflicting impls if type parameter is bounded by associated types #41680

Closed
Kixunil opened this issue May 1, 2017 · 3 comments
Closed

Conflicting impls if type parameter is bounded by associated types #41680

Kixunil opened this issue May 1, 2017 · 3 comments

Comments

@Kixunil
Copy link
Contributor

Kixunil commented May 1, 2017

When implementing trait for generic type the compiler fails with "conflicting impls" message if the bounds for the type parameter differ in associated type.

Minimalistic example

I expected this to pass because if the associated types differ, then types implementing such trait must differ too.

The compiler message:

rustc 1.17.0 (56124baa9 2017-04-24)
error[E0119]: conflicting implementations of trait `Foo` for type `Bar<_>`:
@Diggsey
Copy link
Contributor

Diggsey commented May 1, 2017

Duplicate of #20400

@Kixunil
Copy link
Contributor Author

Kixunil commented May 1, 2017

Sorry, I tried to find it but failed. :(

@Mark-Simulacrum
Copy link
Member

Closing in favor of #20400. No worries about not finding the duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants