diff options
Diffstat (limited to 'src/test/ui/missing/missing-comma-in-match.fixed')
-rw-r--r-- | src/test/ui/missing/missing-comma-in-match.fixed | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/missing/missing-comma-in-match.fixed b/src/test/ui/missing/missing-comma-in-match.fixed new file mode 100644 index 000000000..f091082f3 --- /dev/null +++ b/src/test/ui/missing/missing-comma-in-match.fixed @@ -0,0 +1,11 @@ +// run-rustfix + +fn main() { + match &Some(3) { + &None => 1, + &Some(2) => { 3 } + //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `=>` + //~| NOTE expected one of `,`, `.`, `?`, `}`, or an operator + _ => 2 + }; +} |