-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Add sugar for bounds on associated types #1093
Comments
This, by introducing an implicit type variable, has consequences for bounds on associated-type parameters of associated types, where currently one needs to bubble the type information up to the outer trait and then use a projection bound to push it back down again:
currently needs to be written as
|
@P1start Can we close this now? |
I thought the informal protocol was to close after an RFC has been accepted. |
(@glaebhoerl no idea - I don't want to overstep my bounds ^,-) |
It would be nice if
where T: Trait<AssocType: Bound>
were equivalent towhere T: Trait, <T as Trait>::AssocType: Bound
, by analogy withT: Trait<AssocType = Type>
.The text was updated successfully, but these errors were encountered: