]> git.lizzy.rs Git - rust.git/blob - tests/ui/inference/issue-103587.rs
Rollup merge of #106849 - WaffleLapkin:unvec, r=Nilstrieb
[rust.git] / tests / ui / inference / issue-103587.rs
1 fn main() {
2     let x = Some(123);
3
4     if let Some(_) == x {}
5     //~^ ERROR expected `=`, found `==`
6
7     if Some(_) = x {}
8     //~^ ERROR mismatched types
9
10     if None = x { }
11     //~^ ERROR mismatched types
12 }