Closed
Description
As far as I can tell, the following type alias is unusable:
type I<'a> = &'a (Iterator + 'a);
This isn't a complete type because Iterator::Item
is unspecified and isn't usable because there is no way to specify Iterator::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 .