diff options
Diffstat (limited to 'tests/ui/imports/bad-import-in-nested.rs')
-rw-r--r-- | tests/ui/imports/bad-import-in-nested.rs | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/imports/bad-import-in-nested.rs b/tests/ui/imports/bad-import-in-nested.rs new file mode 100644 index 000000000..2e95480ad --- /dev/null +++ b/tests/ui/imports/bad-import-in-nested.rs @@ -0,0 +1,27 @@ +// 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() {} |