1 error: expected `=`, found `==`
2 --> $DIR/issue-103587.rs:4:20
4 LL | if let Some(_) == x {}
7 help: consider using `=` here
9 LL | if let Some(_) = x {}
12 error[E0308]: mismatched types
13 --> $DIR/issue-103587.rs:7:8
15 LL | if Some(_) = x {}
16 | ^^^^^^^^^^^ expected `bool`, found `()`
18 help: consider adding `let`
20 LL | if let Some(_) = x {}
23 error[E0308]: mismatched types
24 --> $DIR/issue-103587.rs:10:8
27 | ^^^^^^^^ expected `bool`, found `()`
29 help: you might have meant to use pattern matching
31 LL | if let None = x { }
33 help: you might have meant to compare for equality
38 error: aborting due to 3 previous errors
40 For more information about this error, try `rustc --explain E0308`.