diagnostic about typoed path separator could be better #84566
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
D-verbose
Diagnostics: Too much output caused by a single piece of incorrect code.
F-type_ascription
`#![feature(type_ascription)]`
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Given this code, where a path separator is typoed as a single instead of double colon:
the compiler currently outputs:
This output is quite decent already: the second diagnostic correctly identifies that I meant to write a path separator and suggests a fix. However, before I read the second diagnostic, I naturally read the first diagnostic, which is entirely unhelpful. It would be better if the suggestion could be on the first diagnostic, or if the diagnostics could be combined in some way.
The text was updated successfully, but these errors were encountered: