about summary refs log tree commit diff
path: root/tests/ui/resolve/issue-54379.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/resolve/issue-54379.rs')
-rw-r--r--tests/ui/resolve/issue-54379.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/resolve/issue-54379.rs b/tests/ui/resolve/issue-54379.rs
new file mode 100644
index 00000000000..807c54393f2
--- /dev/null
+++ b/tests/ui/resolve/issue-54379.rs
@@ -0,0 +1,14 @@
+struct MyStruct {
+    pub s1: Option<String>,
+}
+
+fn main() {
+    let thing = MyStruct { s1: None };
+
+    match thing {
+        MyStruct { .., Some(_) } => {},
+        //~^ ERROR expected `,`
+        //~| ERROR expected `}`, found `,`
+        _ => {}
+    }
+}