Compiler should not omit associated type in compile error message #65230
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-bug
Category: This is a bug.
D-confusing
Diagnostics: Confusing error or lint that should be reworked.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Environment
Repro
Expected behavior
Compiler should raise an error with error message which explains why lifetime parameters are conflicting clearly
Actual behavior
It shows following error:
Confusing part is as follows:
Compiler says 'expected' and 'found' are incompatible but they look the same. This is caused because associated type
Item
is omitted from error output of 'expected' and 'found'. Actually lifetime parameter in the associated type between 'found' and 'expected' are different but compiler hides them.The text was updated successfully, but these errors were encountered: