]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/match-needing-semi.fixed
Auto merge of #64925 - ehuss:document-json, r=Mark-Simulacrum
[rust.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 }