about summary refs log tree commit diff
path: root/tests/ui/imports/shadow-glob-module-resolution-4.rs
blob: 581cdc185d3f3a2ca7904f583005425736ccbd9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// https://github.com/rust-lang/rust/issues/126376

mod a {
    pub mod b {
        pub trait C {}
    }
}

use a::*;

use e as b;

use b::C as e;
//~^ ERROR: unresolved import `b::C`
//~| ERROR: cannot determine resolution for the import
//~| ERROR: cannot determine resolution for the import

fn e() {}

fn main() { }