summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-22008.rs
blob: 004255822669dd89f5a701293650081760e128b8 (plain)
1
2
3
4
5
6
7
8
9
// run-pass
pub fn main() {
    let command = "a";

    match command {
        "foo" => println!("foo"),
        _     => println!("{}", command),
    }
}