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

Associated types are used as inputs for multidispatch #18437

Closed
nikomatsakis opened this issue Oct 29, 2014 · 3 comments
Closed

Associated types are used as inputs for multidispatch #18437

nikomatsakis opened this issue Oct 29, 2014 · 3 comments

Comments

@nikomatsakis
Copy link
Contributor

Currently associated types are expanded into synthetic type parameters that also lie in the same 'space' as the normal trait type parameters. This means they will be treated like inputs rather than outputs. We should fix this.

@nikomatsakis
Copy link
Contributor Author

This is important for 1.0 primarily because we want to prevent people from doing things like implementing Deref<E=int> and Deref<E=uint> for the same type.

@nikomatsakis
Copy link
Contributor Author

This is fixed now.

@nikomatsakis
Copy link
Contributor Author

For posterity: it was fixed during the rewrite of associated types to not use synthetic type parameters.

lnicola pushed a commit to lnicola/rust that referenced this issue Nov 4, 2024
Publish test-fixture => ra_ap_test_fixture
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

1 participant