summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/import-after-macro-expand-6.rs
blob: ab5bb37a175f7e3963dbe61fd20bd91d486467ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// check-pass
// https://github.com/rust-lang/rust/pull/113099#issuecomment-1633574396

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

mod b {
    pub mod http {
        pub struct HeaderMap;
    }

    pub use self::http::*;
    #[derive(Debug)]
    pub struct HeaderMap;
}

use crate::a::HeaderMap;

fn main() {
    let h: crate::b::http::HeaderMap = HeaderMap;
    // FIXME: should refer to `crate::b::HeaderMap`,
    // FIXME: but doesn't currently refer to it due to backward compatibility
}