I am trying to implement Atkin's sieve in Rust. This requires initializing an array with false. The syntax for this on the internet no longer works.
fn main() {
const limit:usize = 1000000000;
let mut sieve:[bool; limit] = [false];
}
I expect this to create an array of size limit filled with false, instead
rustc "expected an array with a fixed size of 1000000000 elements, found one with 1 element".