False compile error on associated type bounds #125845
Labels
C-bug
Category: This is a bug.
F-associated_type_bounds
`#![feature(associated_type_bounds)]`
fixed-by-next-solver
Fixed by the next-generation trait solver, `-Znext-solver`.
T-types
Relevant to the types team, which will review and decide on the PR/issue.
I tried this code with rustc 1.79.0-beta.7 (playground):
I expected a successful compilation for this code as Associated Type Bounds has been stabilized (#122055). However, I got the following compile error:
The code compiles if
Trait
is replaced with one of the following:or
Add
is replaced with user-definedOp
:Meta
rustc +beta --version --verbose
:The text was updated successfully, but these errors were encountered: