Assoc const equality bounds aren't taken into consideration when normalizing const projections #120905
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
F-associated_const_equality
`#![feature(associated_const_equality)]`
F-generic_const_exprs
`#![feature(generic_const_exprs)]`
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.
For example, I expected the following code to succeed compilation:
Since (I'm pretty sure that) the ParamEnv contains the projection predicate
<T as Trait>::C == 1
, the const projection<T as Trait>::C
inside the function body should be able to get normalized to1
. That however doesn't seem to happen:The text was updated successfully, but these errors were encountered: