]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-24375.rs
Rollup merge of #91630 - GuillaumeGomez:missing-whitespace, r=notriddle
[rust.git] / src / test / ui / parser / issues / 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 }