Description
Apologize that I could not give any code example right now. I'm working on creating one but it seems tricky.
The compiler is complaining about [E0308]: mismatched types
where it said it's expecting for a trait SomeTrait<Apple=SomeApple, Apple=SomeApple, Banana=SomeBanana, Banana=SomeBanana>
but got SomeTrait<Apple=SomeAPple, Banana=SomeBanana>
. Only some of the associated types in that trait are repeated once and there are few others are not repeated.
The example I gave in #59324 is an intermediate result of my attempt to create a minimal reproducible code to this issue. The type mismatch happened at the with_factory
method when resolving concrete type for ThriftService
.
The error happened when I'm doing the update from 1.32.0 to 1.33.0 so it's clearly a regression.
Also, please let me know if you have any suggestion on bypassing this problem or tips on re-creating the problematic code.
Thanks.