diff options
Diffstat (limited to 'src/test/ui/missing/missing-comma-in-match.rs')
-rw-r--r-- | src/test/ui/missing/missing-comma-in-match.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/test/ui/missing/missing-comma-in-match.rs b/src/test/ui/missing/missing-comma-in-match.rs new file mode 100644 index 000000000..54dab4e97 --- /dev/null +++ b/src/test/ui/missing/missing-comma-in-match.rs @@ -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 + }; +} |