| error[E0308]: mismatched types |
| --> $DIR/match-needing-semi.rs:8:13 |
| | |
| LL | / match 3 { |
| LL | | 4 => 1, |
| LL | | 3 => { |
| LL | | 2 |
| | | ^ expected `()`, found integer |
| LL | | } |
| LL | | _ => 2 |
| LL | | } |
| | | -- help: consider using a semicolon here |
| | |_____| |
| | expected this to be `()` |
| |
| error[E0308]: mismatched types |
| --> $DIR/match-needing-semi.rs:12:5 |
| | |
| LL | / match 3 { |
| LL | | 4 => 1, |
| LL | | 3 => 2, |
| LL | | _ => 2 |
| LL | | } |
| | | ^- help: consider using a semicolon here |
| | |_____| |
| | expected `()`, found integer |
| |
| error: aborting due to 2 previous errors |
| |
| For more information about this error, try `rustc --explain E0308`. |