rustc/tests/ui/missing/missing-comma-in-match.fixed
2024-06-21 09:39:33 +02:00

12 lines
271 B
Plaintext

//@ 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
};
}