]> git.lizzy.rs Git - rust.git/blob - src/test/ui/missing/missing-comma-in-match.fixed
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
[rust.git] / src / test / ui / missing / missing-comma-in-match.fixed
1 // run-rustfix
2
3 fn main() {
4     match &Some(3) {
5         &None => 1,
6         &Some(2) => { 3 }
7         //~^ ERROR expected one of `,`, `.`, `?`, `}`, or an operator, found `=>`
8         //~| NOTE expected one of `,`, `.`, `?`, `}`, or an operator
9         _ => 2
10     };
11 }