]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/match-needing-semi.rs
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / match-needing-semi.rs
1 // check-only
2
3 fn main() {
4     match 3 {
5         4 => 1,
6         3 => {
7             foo() //~ ERROR mismatched types
8         }
9         _ => 2
10     }
11     match 3 { //~ ERROR mismatched types
12         4 => 1,
13         3 => 2,
14         _ => 2
15     }
16     let _ = ();
17 }
18
19 fn foo() -> i32 {
20     42
21 }