summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-24375.rs
blob: 8d1bc579e7b84b07c52b0b0a05686d3303f1aff6 (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 one of `,`, `=>`, `@`, `if`, `|`, or `}`, found `[`
        _ => {}
    }
}