summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/bad-import-in-nested.rs
blob: 2e95480ad412e5d227718d0131377c12f0b66a7e (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
25
26
27
// edition: 2021

#![allow(unused)]

mod A {
    pub(crate) type AA = ();
    pub(crate) type BB = ();

    mod A2 {
        use super::{super::C::D::AA, AA as _};
        //~^ ERROR unresolved import
    }
}

mod C {
    pub mod D {}
}

mod B {
    use crate::C::{self, AA};
    //~^ ERROR unresolved import

    use crate::{A, C::BB};
    //~^ ERROR unresolved import
}

fn main() {}