summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/bad-import-in-nested.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/imports/bad-import-in-nested.stderr30
1 files changed, 30 insertions, 0 deletions
diff --git a/tests/ui/imports/bad-import-in-nested.stderr b/tests/ui/imports/bad-import-in-nested.stderr
new file mode 100644
index 000000000..b6b1bc5fc
--- /dev/null
+++ b/tests/ui/imports/bad-import-in-nested.stderr
@@ -0,0 +1,30 @@
+error[E0432]: unresolved import `super::super::C::D::AA`
+ --> $DIR/bad-import-in-nested.rs:10:21
+ |
+LL | use super::{super::C::D::AA, AA as _};
+ | ^^^^^^^^^^^^^^^ no `AA` in `C::D`
+ |
+ = help: consider importing this type alias instead:
+ crate::A::AA
+
+error[E0432]: unresolved import `crate::C::AA`
+ --> $DIR/bad-import-in-nested.rs:20:26
+ |
+LL | use crate::C::{self, AA};
+ | ^^ no `AA` in `C`
+ |
+ = help: consider importing this type alias instead:
+ crate::A::AA
+
+error[E0432]: unresolved import `crate::C::BB`
+ --> $DIR/bad-import-in-nested.rs:23:20
+ |
+LL | use crate::{A, C::BB};
+ | ^^^^^ no `BB` in `C`
+ |
+ = help: consider importing this type alias instead:
+ crate::A::BB
+
+error: aborting due to 3 previous errors
+
+For more information about this error, try `rustc --explain E0432`.