Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd sugar for bounds on associated types #1093
Comments
nrc
added
the
T-lang
label
Aug 30, 2016
This comment has been minimized.
This comment has been minimized.
Twey
commented
Oct 21, 2016
|
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
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
@P1start Can we close this now? |
petrochenkov
closed this
Jan 13, 2018
This comment has been minimized.
This comment has been minimized.
|
I thought the informal protocol was to close after an RFC has been accepted. |
This comment has been minimized.
This comment has been minimized.
|
(@glaebhoerl no idea - I don't want to overstep my bounds ^,-) |
Nemo157
referenced this issue
May 8, 2018
Merged
RFC: Associated type bounds of form `MyTrait<AssociatedType: Bounds>` #2289
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
P1start commentedApr 27, 2015
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>.