Trait bounds of associated types in where
clauses result in unsatisfied requeriments
#116749
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-lazy-normalization
Area: Lazy normalization (tracking issue: #60471)
A-trait-system
Area: Trait system
C-bug
Category: This is a bug.
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.
Feel free to close if duplicated.
Taking aside the errors, a diagnostic suggests adding a weird
T: Foo<()> + Foo<()>
bound.Things that will make everything compile:
T::FooAssociatedTy: Send
(https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=e67dbf2eb726ee22d3470f2a082b1980)TY
(https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=3b8275f7670e6a82dc9cd459815e66a9)type BarAssociatedTy
(https://play.rust-lang.org/?version=nightly&mode=debug&edition=2021&gist=745e08b27876ac261ad2bf9178b2cc79)The text was updated successfully, but these errors were encountered: