I want to create a mutable array of a fixed size. The elements are initialized later in the program. How do I initialize the array?
I tried doing this:
let mut array: [String; 126] = [String::new(); 126];
and it gives me the error:
the trait bound 'std::string::String: std::marker::Copy' is not satisfied
the trait 'std::marker::Copy' is not implemented for 'std::string::String'
how do I initialize the array with new strings?