blob: b40a0f479d3185136b7cd79367f2fc66372314a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
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`.
|