Projecting to an associated constant fails but with wrong reason #61815
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-lazy-normalization
Area: Lazy normalization (tracking issue: #60471)
A-type-system
Area: Type system
C-bug
Category: This is a bug.
E-needs-test
Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
When you have:
you get the usual problem:
That this errors is right. However, it fails for the wrong reason.
What should happen here is that
Self::C
is seen as an opaque constant the value of which you don't get to assume infun
's body. Therefore you should get a type error:cc #61812
cc #29661
The text was updated successfully, but these errors were encountered: