fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// Regression test for issue #89396: Try to recover from a 2// `=>` -> `=` or `->` typo in a match arm. 3 4// run-rustfix 5 6fn 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}