blob: dd0efa972ba3e2753efe820f3c8dfb4691c608b1 [file] [log] [blame] [edit]
// Test if the sugared `if let` construct correctly prints "missing an else clause" when an else
// clause does not exist, instead of the unsympathetic "`match` arms have incompatible types"
fn main() {
if let Some(homura) = Some("madoka") { //~ ERROR missing an `else` clause
//~| expected integer, found `()`
765
};
}