rust/tests/ui/imports/bad-import-in-nested.rs
2023-01-11 09:32:08 +00:00

28 lines
386 B
Rust

// 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() {}