summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/issues/issue-24375.rs
blob: 1d128d33e4f49d53cfd4d4a8de88db95e35f25d2 (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 `[`
        _ => {}
    }
}