diff options
Diffstat (limited to 'tests/ui/resolve/issue-54379.rs')
-rw-r--r-- | tests/ui/resolve/issue-54379.rs | 14 |
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 000000000..807c54393 --- /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 `,` + _ => {} + } +} |