I am trying to initialize a Vec<String>
with some settings that can be reused over my code.
I am using const left: Vec<String> = vec![...
but this doesn't work:
error[E0308]: mismatched types
--> names-generator.rs:2:27
|
2 | const left: Vec<String> = vec![
| ^ expected slice, found array of 93 elements
|
= note: expected type `Box<[std::string::String]>`
= note: found type `Box<[&str; 93]>`
= note: this error originates in a macro outside of the current crate
What is the recommended way of doing something like this?