summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/unresolved-segments-visibility.rs
blob: c26171f75d2ca0d5f144f439e7c734d2fb72c7b3 (plain)
1
2
3
4
5
6
7
8
9
10
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]
    }
}