mirror of
https://github.com/rust-lang/rust.git
synced 2025-10-02 10:18:25 +00:00
12 lines
150 B
Rust
12 lines
150 B
Rust
//@ compile-flags: -Zunpretty=hir
|
|
//@ check-pass
|
|
//@ edition: 2015
|
|
|
|
|
|
|
|
fn foo(x: Option<u32>) {
|
|
let Some(_) = x else { panic!() };
|
|
}
|
|
|
|
fn main() {}
|