rust/tests/ui/unpretty/let-else-hir.rs
Lukas Wirth 20ab952b4d Explicitly annotate edition for unpretty=expanded and unpretty=hir tests
These emit prelude imports which means they are always edition dependent
2025-04-16 11:10:10 +02:00

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() {}