Resolve visibility paths as modules not as types.
This commit is contained in:
parent
7a5d2d0138
commit
2faa2626cc
6 changed files with 27 additions and 7 deletions
11
tests/ui/resolve/unresolved-segments-visibility.rs
Normal file
11
tests/ui/resolve/unresolved-segments-visibility.rs
Normal 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]
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue