]> git.lizzy.rs Git - rust.git/blob - src/test/ui/pattern/issue-53820-slice-pattern-large-array.rs
slice_patterns: remove gates in tests
[rust.git] / src / test / ui / pattern / issue-53820-slice-pattern-large-array.rs
1 // check-pass
2
3 // This used to cause a stack overflow in the compiler.
4
5 fn main() {
6     const LARGE_SIZE: usize = 1024 * 1024;
7     let [..] = [0u8; LARGE_SIZE];
8     match [0u8; LARGE_SIZE] {
9         [..] => {}
10     }
11 }