]> git.lizzy.rs Git - rust.git/blob - tests/ui/issues/issue-22008.rs
Rollup merge of #106896 - Ezrashaw:str-cast-bool-emptyness, r=compiler-errors
[rust.git] / tests / ui / issues / issue-22008.rs
1 // run-pass
2 pub fn main() {
3     let command = "a";
4
5     match command {
6         "foo" => println!("foo"),
7         _     => println!("{}", command),
8     }
9 }