Error message pointing to struct definition instead of pointing to trait impl with missing trait bound #93687
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code:
The current output is:
Ideally the output should look like:
To correct the code, one should add two trait bounds to line 22, not to line 9, and it would look like this:
Tested on both stable and nightly.
The text was updated successfully, but these errors were encountered: