1 error[E0308]: `if` and `else` have incompatible types
2 --> $DIR/type-mismatch-error.rs:16:17
8 | | | help: consider removing this semicolon
9 | | expected because of this
12 | | ^ expected `()`, found `u8`
15 | |_____________- `if` and `else` have incompatible types
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.