fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: expected `=`, found `==` 2 --> $DIR/issue-103587.rs:4:20 3 | 4LL | if let Some(_) == x {} 5 | ^^ 6 | 7help: consider using `=` here 8 | 9LL | if let Some(_) = x {} 10 | ~ 11 12error[E0308]: mismatched types 13 --> $DIR/issue-103587.rs:7:8 14 | 15LL | if Some(_) = x {} 16 | ^^^^^^^^^^^ expected `bool`, found `()` 17 | 18help: consider adding `let` 19 | 20LL | if let Some(_) = x {} 21 | +++ 22 23error[E0308]: mismatched types 24 --> $DIR/issue-103587.rs:10:8 25 | 26LL | if None = x { } 27 | ^^^^^^^^ expected `bool`, found `()` 28 | 29help: you might have meant to use pattern matching 30 | 31LL | if let None = x { } 32 | +++ 33help: you might have meant to compare for equality 34 | 35LL | if None == x { } 36 | + 37 38error: aborting due to 3 previous errors 39 40For more information about this error, try `rustc --explain E0308`.