blob: 8f5949533e2c786c2ae948e883676d1dbda99282 [file] [log] [blame]
error[E0308]: `if` and `else` have incompatible types
--> $DIR/type-mismatch-error.rs:16:17
|
LL | / if false {
LL | | yield ();
| | ---------
| | | |
| | | help: consider removing this semicolon
| | expected because of this
LL | | } else {
LL | | a
| | ^ expected `()`, found `u8`
LL | |
LL | | }
| |_____________- `if` and `else` have incompatible types
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.