rust/tests/ui/imports/bad-import-in-nested.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
387 B
Rust
Raw Normal View History

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