1 // Test if the sugared if-let construct correctly prints "missing an else clause" when an else
2 // clause does not exist, instead of the unsympathetic "match arms have incompatible types"
5 if let Some(homura) = Some("madoka") { //~ ERROR missing an else clause
6 //~| expected type `()`
7 //~| found type `{integer}`
8 //~| expected (), found integer