blob: 0f8815f0479f5fa256c449d316c9193d1dadd430 [file] [log] [blame]
fn main() {
if let Some(b) = None {
//~^ NOTE if and else have incompatible types
()
//~^ NOTE expected because of this
} else {
1
};
//~^^ ERROR: if and else have incompatible types
//~| NOTE expected (), found integer
//~| NOTE expected type `()`
}