Compiler stack overflow caused by specific generics syntax #22375
Labels
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.
I tried pulling the old Java enum generics cleverness on rustc, and depending on the syntax used it either works as expected or plainly crashes.
This works just fine:
However this really upsets the compiler:
The text was updated successfully, but these errors were encountered: