]> git.proxmox.com Git - rustc.git/blob - src/test/ui/suggestions/if-let-typo.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / src / test / ui / suggestions / if-let-typo.rs
1 fn main() {
2 let foo = Some(0);
3 let bar = None;
4 if Some(x) = foo {} //~ ERROR cannot find value `x` in this scope
5 if Some(foo) = bar {} //~ ERROR mismatched types
6 if 3 = foo {} //~ ERROR mismatched types
7 if Some(3) = foo {} //~ ERROR mismatched types
8 }