2024-02-16 14:02:50 -06:00
|
|
|
//@ edition: 2021
|
2022-12-26 23:09:33 -06:00
|
|
|
|
2022-12-26 22:28:02 -06:00
|
|
|
#![allow(unused)]
|
|
|
|
|
|
|
|
mod A {
|
|
|
|
pub(crate) type AA = ();
|
2022-12-26 23:09:33 -06:00
|
|
|
pub(crate) type BB = ();
|
|
|
|
|
|
|
|
mod A2 {
|
|
|
|
use super::{super::C::D::AA, AA as _};
|
|
|
|
//~^ ERROR unresolved import
|
|
|
|
}
|
2022-12-26 22:28:02 -06:00
|
|
|
}
|
|
|
|
|
2022-12-26 23:09:33 -06:00
|
|
|
mod C {
|
|
|
|
pub mod D {}
|
|
|
|
}
|
2022-12-26 22:28:02 -06:00
|
|
|
|
|
|
|
mod B {
|
|
|
|
use crate::C::{self, AA};
|
2022-12-26 23:09:33 -06:00
|
|
|
//~^ ERROR unresolved import
|
|
|
|
|
|
|
|
use crate::{A, C::BB};
|
|
|
|
//~^ ERROR unresolved import
|
2022-12-26 22:28:02 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {}
|