]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issue-24375.rs
Auto merge of #57119 - jethrogb:jb/sgx-os-mod2, r=joshtriplett
[rust.git] / src / test / ui / parser / issue-24375.rs
1 // compile-flags: -Z parse-only
2
3 static tmp : [&'static str; 2]  = ["hello", "he"];
4
5 fn main() {
6     let z = "hello";
7     match z {
8         tmp[0] => {} //~ ERROR expected one of `=>`, `@`, `if`, or `|`, found `[`
9         _ => {}
10     }
11 }