What is MAX array size?

If the element size is zero, then you can have a vector of length 2^63-1, yes.

fn main() {
    let vec = vec![(); 9223372036854775807];
    println!("{}", vec.len());
}

But if you want actual data in the vector, then no. Then creating the vector will fail because it is too large.

4 Likes