ICE: Encountered error Unimplemented
when trying to select an implementation for constant trait item reference. <anon>:4 const ID: i32;
#25606
Labels
A-associated-items
Area: Associated items (types, constants & functions)
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
I have two similar pieces of code that I would expect to behave in a similar fashion. The first piece of code compiles and functions properly:
The second piece of code replaces the static methods with an associated constant:
This code fails to compile with the following ICE:
What's interesting is that the following code does compile:
So it would appear as if this behavior is related to the use of a generic in the UFCS resolution for the associated constant.
The text was updated successfully, but these errors were encountered: