#![feature(no_core)]
#![no_core]
mod foo;
use foo::foo;
fn main() {
foo();
}
with a foo module file only containing the following function:
This causes the following issue:
test.rs:6:5: error: ‘foo’ defined multiple times [E0428]
4 | mod foo;
| ~~~
5 |
6 | use foo::foo;
| ^~~
rustc doesn't emit any issues. This is a problem since modules should be inserted in the types NS, while functions should only be inserted in the Values NS.
Note that this is likely caused by the current implementation of #4404 and should be fixed before it gets merged
with a foo module file only containing the following function:
This causes the following issue:
rustc doesn't emit any issues. This is a problem since modules should be inserted in the types NS, while functions should only be inserted in the Values NS.
Note that this is likely caused by the current implementation of #4404 and should be fixed before it gets merged