I wish to verify with the Rust expert this simple Rust program (rustc 0.13.0-nightly on Linux x86-64 system):
/*
the runtime error is:
task '<main>' has overflowed its stack
Illegal instruction (core dumped)
*/
fn main() {
let l = [0u, ..1_000_000u];
}
The compile process ends perfectly with no error but at runtime the program failed with the error shown in the code comment.
Is there a limit to the dimension of fixed size array in Rust or is this a bug somewhere in the compiler?