1 error[E0308]: `if let` arms have incompatible types
2 --> $DIR/if-let-arm-types.rs:12:5
4 LL | / if let Some(b) = None { //~ ERROR: `if let` arms have incompatible types
5 LL | | //~^ expected (), found integral variable
6 LL | | //~| expected type `()`
7 LL | | //~| found type `{integer}`
11 | |_____^ expected (), found integral variable
13 = note: expected type `()`
14 found type `{integer}`
15 note: `if let` arm with an incompatible type
16 --> $DIR/if-let-arm-types.rs:17:12
24 error: aborting due to previous error
26 For more information about this error, try `rustc --explain E0308`.