about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-26545.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/issue-26545.rs')
-rw-r--r--tests/ui/resolve/issue-26545.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-26545.rs b/tests/ui/resolve/issue-26545.rs
new file mode 100644
index 00000000000..5652ee74706
--- /dev/null
+++ b/tests/ui/resolve/issue-26545.rs
@@ -0,0 +1,12 @@
+mod foo {
+    pub struct B(pub ());
+}
+
+mod baz {
+    fn foo() {
+        B(());
+        //~^ ERROR cannot find function, tuple struct or tuple variant `B` in this scope [E0425]
+    }
+}
+
+fn main() {}