fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0308]: mismatched types 2 --> $DIR/match-needing-semi.rs:7:13 3 | 4LL | / match 3 { 5LL | | 4 => 1, 6LL | | 3 => { 7LL | | foo() 8 | | ^^^^^ expected `()`, found `i32` 9LL | | } 10LL | | _ => 2 11LL | | } 12 | |_____- expected this to be `()` 13 | 14help: consider using a semicolon here 15 | 16LL | foo(); 17 | + 18help: consider using a semicolon here 19 | 20LL | }; 21 | + 22 23error[E0308]: mismatched types 24 --> $DIR/match-needing-semi.rs:11:5 25 | 26LL | / match 3 { 27LL | | 4 => 1, 28LL | | 3 => 2, 29LL | | _ => 2 30LL | | } 31 | | ^- help: consider using a semicolon here 32 | |_____| 33 | expected `()`, found integer 34 35error: aborting due to 2 previous errors 36 37For more information about this error, try `rustc --explain E0308`.