"Could not find <module> in <module>" uses wrong span when {...} are involved #43040
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-tracking-issue
Category: An issue tracking the progress of sth. like the implementation of an RFC
The following program: (Playpen)
Produces these errors:
Notice how the
^
put the blame on the part inside the curly brace, where really, they should point at thebar
(or at the entirestd::...
, which is what happens when no curly braces are involved).The text was updated successfully, but these errors were encountered: