summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-32086.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-32086.rs')
-rw-r--r--tests/ui/issues/issue-32086.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-32086.rs b/tests/ui/issues/issue-32086.rs
new file mode 100644
index 000000000..d595d1dd7
--- /dev/null
+++ b/tests/ui/issues/issue-32086.rs
@@ -0,0 +1,7 @@
+struct S(u8);
+const C: S = S(10);
+
+fn main() {
+ let C(a) = S(11); //~ ERROR expected tuple struct or tuple variant, found constant `C`
+ let C(..) = S(11); //~ ERROR expected tuple struct or tuple variant, found constant `C`
+}