Associated types expansion issue #70647
Labels
A-associated-items
Area: Associated items such as associated types and consts.
A-lazy-normalization
Area: lazy normalization (tracking issue: #60471)
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Adding an bound on an associated type (
where T::BarOutput: TraitFoo
) causes the compiler to erroneously complain about the original bound:the trait bound ``T: TraitBar<u64>`` is not satisfied
The compiler is able to expand the associated type
BazOutput
enough to generate that error, but not enough to realize it would satisfy that bound.(Playground)
I expected to see all 6 versions compile cleanly.
Instead, this happened:
The text was updated successfully, but these errors were encountered: