]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-19991.rs
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / test / ui / issues / issue-19991.rs
CommitLineData
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
4fn 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}