Incorrect span for GAT equality bound with missing type parameter in where
clause
#84009
Labels
A-associated-items
Area: Associated items (types, constants & functions)
A-diagnostics
Area: Messages for errors, warnings, and lints
A-GATs
Area: Generic associated types (GATs)
F-generic_associated_types
`#![feature(generic_associated_types)]` a.k.a. GATs
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given the following code (taken from #79636 (comment), playground):
The current output is:
Note that the suggestion is syntactically invalid:
The problem is that the span is pointing at the associated type, not the
where
clause bound.Ideally the output should look like:
The text was updated successfully, but these errors were encountered: