Confusing diagnostic for supertrait cycle #80164
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-trait-system
Area: Trait system
D-papercut
Diagnostics: An error or lint that needs small tweaks.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
(Playground)
Errors:
Note: it's possible to reproduce the issue with a lot simpler repro, leaving just the
From<Self::Value
part, but example with more traits is more problematic, because in that case it's unclear which one of the trait clauses is actually causing the issue.Note 2: Aside from improving diagnostics, why is this an error at all? There is no trait cycle as far as I can tell, it's just trying to use its own associated type which feels like should be fine...
cc @estebank
The text was updated successfully, but these errors were encountered: