summaryrefslogtreecommitdiffstats
path: root/src/test/ui/imports/import.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/imports/import.stderr')
-rw-r--r--src/test/ui/imports/import.stderr31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/test/ui/imports/import.stderr b/src/test/ui/imports/import.stderr
new file mode 100644
index 000000000..797712e2d
--- /dev/null
+++ b/src/test/ui/imports/import.stderr
@@ -0,0 +1,31 @@
+error[E0432]: unresolved import `zed::baz`
+ --> $DIR/import.rs:2:5
+ |
+LL | use zed::baz;
+ | ^^^^^---
+ | | |
+ | | help: a similar name exists in the module: `bar`
+ | no `baz` in `zed`
+
+error[E0432]: unresolved import `foo`
+ --> $DIR/import.rs:10:9
+ |
+LL | use foo;
+ | ^^^ no `foo` in the root
+
+error[E0603]: unresolved item import `foo` is private
+ --> $DIR/import.rs:15:10
+ |
+LL | zed::foo();
+ | ^^^ private unresolved item import
+ |
+note: the unresolved item import `foo` is defined here
+ --> $DIR/import.rs:10:9
+ |
+LL | use foo;
+ | ^^^
+
+error: aborting due to 3 previous errors
+
+Some errors have detailed explanations: E0432, E0603.
+For more information about an error, try `rustc --explain E0432`.