summaryrefslogtreecommitdiffstats
path: root/tests/ui/test-attrs/inaccessible-test-modules.stderr
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/test-attrs/inaccessible-test-modules.stderr20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/test-attrs/inaccessible-test-modules.stderr b/tests/ui/test-attrs/inaccessible-test-modules.stderr
new file mode 100644
index 000000000..7635f579d
--- /dev/null
+++ b/tests/ui/test-attrs/inaccessible-test-modules.stderr
@@ -0,0 +1,20 @@
+error[E0432]: unresolved import `main`
+ --> $DIR/inaccessible-test-modules.rs:5:5
+ |
+LL | use main as x;
+ | ^^^^^^^^^ no `main` in the root
+
+error[E0432]: unresolved import `test`
+ --> $DIR/inaccessible-test-modules.rs:6:5
+ |
+LL | use test as y;
+ | ^^^^^^^^^ no `test` in the root
+ |
+help: consider importing this module instead
+ |
+LL | use test::test as y;
+ | ~~~~~~~~~~~~~~~
+
+error: aborting due to 2 previous errors
+
+For more information about this error, try `rustc --explain E0432`.