rust/tests/ui/issues/issue-22008.rs
2024-02-16 20:02:50 +00:00

9 lines
157 B
Rust

//@ run-pass
pub fn main() {
let command = "a";
match command {
"foo" => println!("foo"),
_ => println!("{}", command),
}
}