summaryrefslogtreecommitdiffstats
path: root/src/test/ui/resolve/issue-80079.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/resolve/issue-80079.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/resolve/issue-80079.rs b/src/test/ui/resolve/issue-80079.rs
new file mode 100644
index 000000000..4795ed062
--- /dev/null
+++ b/src/test/ui/resolve/issue-80079.rs
@@ -0,0 +1,12 @@
+// aux-build:issue-80079.rs
+
+// using a module from another crate should not cause errors to suggest private
+// items in that module
+
+extern crate issue_80079;
+
+use issue_80079::public;
+
+fn main() {
+ let _ = Foo; //~ ERROR cannot find value `Foo` in this scope
+}