false positive when associated_type_bounds
used with for<>
on super traits
#121929
Labels
A-implied-bounds
Area: Implied bounds / inferred outlives-bounds
A-trait-system
Area: Trait system
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-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.
cc #52662.
I tried this code: (play)
I expected to see this happen: compiles successfully
Instead, this happened: does not compile, with confusing errors:
This came up while implementing #120639. If I remove the bound
Opaque: Rando
bound it would compile successfully.backtrace
The text was updated successfully, but these errors were encountered: