rust/tests/ui/missing/missing-comma-in-match.fixed

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
270 B
Rust
Raw Normal View History

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