Can't bring nested mod into scope with use foo::foo
#5130
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
use foo::foo
#5130
The
use foo::foo;
line seems to do nothing at all, the reference tofoo
insidemain
still seems to resolve to the outerfoo
.Should the
use
item just be illegal if it collides with an existing name? This issue confused me for quite a while with therust-sdl
package'ssdl
crate that contains ansdl
mod.The text was updated successfully, but these errors were encountered: