rustc: error when both both defining and using a module should be more specific #15769
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
Given the following setup,
rustc says
I ran into this while refactoring, but I imagine newcomers getting used to the
use
/mod
distinction (and the fact thatmod
automaticallyuse
s) would benefit from a message more like:It's also a bit strange that double-imports are allowed, but the situation above isn't. RFC PR 116 could help regularize things.
The text was updated successfully, but these errors were encountered: