]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-24375.rs
Rollup merge of #67005 - andrewbanchich:master, r=joshtriplett
[rust.git] / src / test / ui / parser / issue-24375.rs
1 static tmp : [&'static str; 2]  = ["hello", "he"];
2
3 fn main() {
4     let z = "hello";
5     match z {
6         tmp[0] => {} //~ ERROR expected one of `=>`, `@`, `if`, or `|`, found `[`
7         _ => {}
8     }
9 }