mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-15 00:13:02 +00:00
13 lines
213 B
Rust
13 lines
213 B
Rust
![]() |
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
|
||
|
}
|