Unresolved import with external module in name resolution 2.0
CohenArthur opened this issue · comments
with the following project structure:
test/
- lib.rs
- foo.rs
and the following file content
// test/lib.rs
mod foo;
use foo::Foo;
// test/foo.rs
pub struct Foo;
we get the following error:
~/G/r/gccrs (master|✚1) [1] $ build/gcc/crab1 test/lib.rs -frust-name-resolution-2.0
test/lib.rs:3:10: error: unresolved import ‘foo::Foo’ [E0433]
3 | use foo::Foo;
| ^~~
name resolution 1.0 and rustc
do not emit any errors