60c5eb7d XL |
1 | // check-pass |
2 | |
3 | // This used to cause a stack overflow in the compiler. |
4 | |
5 | #![feature(slice_patterns)] |
6 | |
7 | fn main() { |
8 | const LARGE_SIZE: usize = 1024 * 1024; |
9 | let [..] = [0u8; LARGE_SIZE]; |
10 | match [0u8; LARGE_SIZE] { |
11 | [..] => {} |
12 | } |
13 | } |