"struct defined here" doesn't show where the struct is defined #89159
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.
When a
struct
defined outside of the current crate is used with not enough generics, the note in the error says "struct defined here" but doesn't show where.Given the following code:
The current output is:
Ideally, the output should look like this:
I'm willing to work on this, though I don't have a clue why this is happening (yet). An interesting thing to notice is that the current box error is actually indented more, I suppose it's because
Box
is located on a 3 digit line (172, currently). So it's like that part of the error is somewhere, but it's lost?The text was updated successfully, but these errors were encountered: