Non-modules allowed in module positions in use
.
#38293
Labels
A-resolve
Area: Name/path resolution done by `rustc_resolve` specifically
use
.
#38293
Consider the following piece of code, which compiles:
The
use
declaration is allowed to usefoo
as a module whenfoo
is actually a function. This should not be allowed.Further, when
foo
does exist as a module, regardless of visibility,self
incorrectly imports items with the same name in that module:The text was updated successfully, but these errors were encountered: