Trait aliases considers same type as not equal to itself if used in impl Trait
return type
#57612
Labels
A-impl-trait
Area: `impl Trait`. Universally / existentially quantified anonymous types with static dispatch.
A-trait-system
Area: Trait system
A-type-system
Area: Type system
F-trait_alias
`#![feature(trait_alias)]`
Example:
Workaround: Replace
existential type Bar: Baz<Self, Self>;
withexistential type Bar: Fn(&X) -> &X;
Possibly related to #57611
Playground
The text was updated successfully, but these errors were encountered: