mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
12 lines
250 B
Rust
12 lines
250 B
Rust
//@ 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] {
|
|
[..] => {}
|
|
}
|
|
}
|