1
Fork 0

Resolve visibility paths as modules not as types.

This commit is contained in:
Camille GILLOT 2023-03-19 10:46:19 +00:00
parent 7a5d2d0138
commit 2faa2626cc
6 changed files with 27 additions and 7 deletions

View file

@ -0,0 +1,11 @@
// Check that we do not ICE due to unresolved segments in visibility path.
#![crate_type = "lib"]
extern crate alloc as b;
mod foo {
mod bar {
pub(in b::string::String::newy) extern crate alloc as e;
//~^ ERROR failed to resolve: `String` is a struct, not a module [E0433]
}
}