summaryrefslogtreecommitdiffstats
path: root/src/test/ui/empty/issue-37026.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/empty/issue-37026.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/ui/empty/issue-37026.rs b/src/test/ui/empty/issue-37026.rs
new file mode 100644
index 000000000..fd678a717
--- /dev/null
+++ b/src/test/ui/empty/issue-37026.rs
@@ -0,0 +1,8 @@
+// aux-build:empty-struct.rs
+
+extern crate empty_struct;
+
+fn main() {
+ let empty_struct::XEmpty2 = (); //~ ERROR mismatched types
+ let empty_struct::XEmpty6(..) = (); //~ ERROR mismatched types
+}