I would like to create an array of vectors:
fn main() { let v: [Vec; 10] = [Vec::new(); 10]; }
However, the compiler gives me t
You could use the Default trait to initialize the array with default values:
Default
let array: [Vec; 10] = Default::default();
See this playground for a working example.