]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/match-needing-semi.fixed
New upstream version 1.51.0+dfsg1
[rustc.git] / src / test / ui / suggestions / match-needing-semi.fixed
1 // check-only
2 // run-rustfix
3
4 fn main() {
5 match 3 {
6 4 => 1,
7 3 => {
8 2 //~ ERROR mismatched types
9 }
10 _ => 2
11 };
12 match 3 { //~ ERROR mismatched types
13 4 => 1,
14 3 => 2,
15 _ => 2
16 };
17 let _ = ();
18 }