]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/bad-import-in-nested.rs
Merge commit '1d8491b120223272b13451fc81265aa64f7f4d5b' into sync-from-rustfmt
[rust.git] / tests / ui / imports / bad-import-in-nested.rs
1 // edition: 2021
2
3 #![allow(unused)]
4
5 mod A {
6     pub(crate) type AA = ();
7     pub(crate) type BB = ();
8
9     mod A2 {
10         use super::{super::C::D::AA, AA as _};
11         //~^ ERROR unresolved import
12     }
13 }
14
15 mod C {
16     pub mod D {}
17 }
18
19 mod B {
20     use crate::C::{self, AA};
21     //~^ ERROR unresolved import
22
23     use crate::{A, C::BB};
24     //~^ ERROR unresolved import
25 }
26
27 fn main() {}