]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/issues/issue-89396.rs
Rollup merge of #106441 - mllken:abstract-socket-noref, r=joshtriplett
[rust.git] / tests / ui / parser / issues / issue-89396.rs
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 }