mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-01 15:50:05 +03:00
9ca8ed38eb
Signed-off-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
7 lines
143 B
Rust
7 lines
143 B
Rust
fn main() {
|
|
let x = Some(42);
|
|
if let Some(_) = x
|
|
&& Some(x) = x //~^ ERROR expected expression, found `let` statement
|
|
{}
|
|
}
|