2019-11-16 16:43:55 +00:00
|
|
|
// check-pass
|
2019-11-18 15:40:49 +00:00
|
|
|
|
2019-12-30 01:37:14 +01:00
|
|
|
// This used to cause a stack overflow during exhaustiveness checking in the compiler.
|
2019-11-18 15:40:49 +00:00
|
|
|
|
2019-11-16 16:43:55 +00:00
|
|
|
fn main() {
|
|
|
|
const LARGE_SIZE: usize = 1024 * 1024;
|
|
|
|
let [..] = [0u8; LARGE_SIZE];
|
|
|
|
match [0u8; LARGE_SIZE] {
|
|
|
|
[..] => {}
|
|
|
|
}
|
|
|
|
}
|