Trait impls conflict even with different associated const bounds #103292
Labels
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
F-associated_const_equality
`#![feature(associated_const_equality)]`
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.
I have the following code:
I would expect that this code would be accepted. While there are multiple blanket impls of
AlignedTo<1>
andAlignedTo<2>
, they're bounded by mutually-exclusive bounds - e.g., a type cannot be bothAlign<ALIGN=1>
andAlign<ALIGN=2>
at the same time. However, I get this error:Possibly related to #20400.
Version
Nightly 2022-10-19 4b8f431
The text was updated successfully, but these errors were encountered: