use foo::self
should only give one error
#42559
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
It currently gives two - one for
self
outside{}
and one for an unknown import. The latter should be silenced.e.g.,
The text was updated successfully, but these errors were encountered: