Files
2026-01-16 12:17:47 +11:00

18 lines
362 B
Rust

#![crate_type = "rlib"]
//@ edition: 2024
//@ compile-flags: -Zunpretty=thir-flat
//@ check-pass
// Snapshot test capturing the THIR pattern structure produced by
// string-literal and string-constant patterns.
pub fn hello_world(x: &str) {
match x {
"hello" => {}
CONSTANT => {}
_ => {}
}
}
const CONSTANT: &str = "constant";