about summary refs log tree commit diff
path: root/tests/ui/parser/issues/issue-24375.rs
blob: a5e256b7f15540b5af95de4ac6b7e8c002540742 (plain)
1
2
3
4
5
6
7
8
9
static tmp : [&'static str; 2]  = ["hello", "he"];

fn main() {
    let z = "hello";
    match z {
        tmp[0] => {} //~ error: expected a pattern, found an expression
        _ => {}
    }
}