Forbid unusable type aliases #22434
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-type-system
Area: Type system
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
As far as I can tell, the following type alias is unusable:
This isn't a complete type because
Iterator::Item
is unspecified and isn't usable because there is no way to specifyIterator::Item
(as far as I know) after the fact.Personally, I feel type aliases like this should be compile time errors. I'm bringing this nitpick up now because fixing it is technically a breaking change .
The text was updated successfully, but these errors were encountered: