mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 23:34:48 +00:00
28 lines
386 B
Rust
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() {}
|