mirror of
https://git.proxmox.com/git/rustc
synced 2026-01-10 11:56:46 +00:00
17 lines
422 B
Plaintext
17 lines
422 B
Plaintext
// Regression test for issue #89396: Try to recover from a
|
|
// `=>` -> `=` or `->` typo in a match arm.
|
|
|
|
//@ run-rustfix
|
|
|
|
fn main() {
|
|
let opt = Some(42);
|
|
let _ = match opt {
|
|
Some(_) => true,
|
|
//~^ ERROR: expected one of
|
|
//~| HELP: use a fat arrow to start a match arm
|
|
None => false,
|
|
//~^ ERROR: expected one of
|
|
//~| HELP: use a fat arrow to start a match arm
|
|
};
|
|
}
|