summaryrefslogtreecommitdiffstats
path: root/tests/ui/imports/issue-4366-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/imports/issue-4366-2.stderr')
-rw-r--r--tests/ui/imports/issue-4366-2.stderr27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/ui/imports/issue-4366-2.stderr b/tests/ui/imports/issue-4366-2.stderr
new file mode 100644
index 000000000..4c94634ee
--- /dev/null
+++ b/tests/ui/imports/issue-4366-2.stderr
@@ -0,0 +1,27 @@
+error[E0412]: cannot find type `Bar` in this scope
+ --> $DIR/issue-4366-2.rs:15:21
+ |
+LL | fn sub() -> Bar { 1 }
+ | ^^^ not found in this scope
+ |
+note: type alias `a::b::Bar` exists but is inaccessible
+ --> $DIR/issue-4366-2.rs:11:9
+ |
+LL | type Bar = isize;
+ | ^^^^^^^^^^^^^^^^^ not accessible
+
+error[E0423]: expected function, found module `foo`
+ --> $DIR/issue-4366-2.rs:25:5
+ |
+LL | foo();
+ | ^^^ not a function
+ |
+help: consider importing this function instead
+ |
+LL | use foo::foo;
+ |
+
+error: aborting due to 2 previous errors
+
+Some errors have detailed explanations: E0412, E0423.
+For more information about an error, try `rustc --explain E0412`.