Use vec![Default::default(); n] or Vec::with_capacity(n) and push to it.
vec![Default::default(); n]
Vec::with_capacity(n)
push