summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-after-macro-expand-7.rs
blob: 0402dfdfda7039dbf60ad5af5865b2f34e407214 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// check-pass
// a compared case for `import-after-macro-expand-6.rs`

pub mod a {
    pub use crate::b::*;
}

mod b {
    mod http {
        pub struct HeaderMap;
    }

    pub use self::http::*;
    pub struct HeaderMap;
}

use crate::a::HeaderMap;

fn main() {
    let h: crate::b::HeaderMap = HeaderMap;
}