Currently, EnumIter for struct with constant generic results in error E0747 (constant provided when a type was expected).
That's because generated iter struct looks sth like:
Which is ok for ordinary(type) generics, but for const generics iter struct definition has to look like:
struct LanguageIter<const LAUNCHER: bool> {...}
this PR makes EnumIter work with const generics, by using $impl_generics instead of $ty_generics for struct definition.
Also added const generic to enum in tests.
Currently, EnumIter for struct with constant generic results in error E0747 (constant provided when a type was expected). That's because generated iter struct looks sth like:
for enum:
Which is ok for ordinary(type) generics, but for const generics iter struct definition has to look like:
this PR makes EnumIter work with const generics, by using $impl_generics instead of $ty_generics for struct definition. Also added const generic to enum in tests.