]> git.proxmox.com Git - rustc.git/blob - tests/ui/parser/issues/issue-89396.rs
New upstream version 1.68.2+dfsg1
[rustc.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 }