blob: b40a0f479d3185136b7cd79367f2fc66372314a0 [file] [log] [blame]
error[E0308]: `if` and `else` have incompatible types
--> $DIR/if-let-arm-types.rs:7:9
|
LL | / if let Some(b) = None {
LL | |
LL | | ()
| | -- expected because of this
LL | |
LL | | } else {
LL | | 1
| | ^ expected `()`, found integer
LL | | };
| |_____- `if` and `else` have incompatible types
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.