I'm trying this:
let mut a = Box::new([42; 1000000]);
a[1] = 42;
assert!(a.len() > 0);
I'm getting (because it's too big for a stack):
signal: 11, SIGSEGV: invalid memory reference
Please, suggest a working alternative (I need an array, not a Vec
!).