blob: e5adf15396549ae4d41a0e28284327d652f4f8d9 [file] [log] [blame] [edit]
//@ check-pass
// This used to cause a stack overflow during exhaustiveness checking in the compiler.
fn main() {
const LARGE_SIZE: usize = 1024 * 1024;
let [..] = [0u8; LARGE_SIZE];
match [0u8; LARGE_SIZE] {
[..] => {}
}
}