Confusing error caused by double peojection in trait supertraits #102185
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
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.
Given the following code: (play)
The current output is:
This is confusing because it seems like this error is caused by
type X: B
in the trait, but actually it's caused byX as B
in the supertraits, if your removeX as B
the code compiles (as it should in any case, IMO!).Ideally the code would compile or at least the output should look like:
@rustbot label +D-confusing
The text was updated successfully, but these errors were encountered: