rust/tests/ui/inference/issue-103587.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
213 B
Rust
Raw Normal View History

fn main() {
let x = Some(123);
if let Some(_) == x {}
//~^ ERROR expected `=`, found `==`
if Some(_) = x {}
//~^ ERROR mismatched types
if None = x { }
//~^ ERROR mismatched types
}