-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Closed
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)
Description
Today we support only the very explicit notation of <T as Trait>::Type. It'd be nice to support the shorter notation of T::Type. Eventually this should work in as wide a variety of circumstances as possible, but for the time being it might be ok to introduce a hack to make this work, such as only if T has a single applicable trait bound. But we have to be careful that this hack is forwards compatible (so, e.g., just picking the first trait bound unambiguously is probably not a good idea).
Metadata
Metadata
Assignees
Labels
A-associated-itemsArea: Associated items (types, constants & functions)Area: Associated items (types, constants & functions)