]>
Commit | Line | Data |
---|---|---|
6a06907d | 1 | // Test if the sugared `if let` construct correctly prints "missing an else clause" when an else |
dfeec247 | 2 | // clause does not exist, instead of the unsympathetic "`match` arms have incompatible types" |
223e47cc LB |
3 | |
4 | fn main() { | |
dfeec247 | 5 | if let Some(homura) = Some("madoka") { //~ ERROR missing an `else` clause |
60c5eb7d | 6 | //~| expected `()`, found integer |
c34b1796 | 7 | 765 |
223e47cc | 8 | }; |
223e47cc | 9 | } |