"Unsupported associated type binding" when declaring local variable with associated type in default method #19850
Labels
A-associated-items
Area: Associated items (types, constants & functions)
Test case:
Currently fails with:
This can be worked around by making that
Int::one()
expression into a method of the trait returning<Self as Foo>::T
, but then that method would become public as well, which may not be desirable.The text was updated successfully, but these errors were encountered: