]>
Commit | Line | Data |
---|---|---|
c295e0f8 XL |
1 | // Regression test for issue #89396: Try to recover from a |
2 | // `=>` -> `=` or `->` typo in a match arm. | |
3 | ||
4 | // run-rustfix | |
5 | ||
6 | fn main() { | |
7 | let opt = Some(42); | |
8 | let _ = match opt { | |
9 | Some(_) = true, | |
10 | //~^ ERROR: expected one of | |
11 | //~| HELP: try using a fat arrow here | |
12 | None -> false, | |
13 | //~^ ERROR: expected one of | |
14 | //~| HELP: try using a fat arrow here | |
15 | }; | |
16 | } |