Stack overflow compiling slice pattern for big array · Issue #53820 · rust-lang/rust (original) (raw)
The following fails with a stack overflow:
#![feature(slice_patterns)]
fn main() { match [0u8; 16*1024] { [..] => {} } }
I see tests failing on miri's CI on Windows when the size is just 1024
, so my suspicion is that this code will fail to compile on Windows with a smaller slice -- but I do not have a Windows machine to test that.