]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/match-needing-semi.rs
Rollup merge of #65276 - varkor:toolstate-no-ping, r=Mark-Simulacrum
[rust.git] / src / test / ui / suggestions / match-needing-semi.rs
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 }