How to create a static array of strings?
There are two related concepts and keywords in Rust: const and static:
https://doc.rust-lang.org/reference/items/constant-items.html
For most use cases, including this one, const is more appropriate, since mutation is not allowed, and the compiler may inline const items.
const STRHELLO:&'static str = "Hello";const STRWORLD:&'static str = "World";const ARR:[&'static str, ..2] = [STRHELLO,STRWORLD];
Note, there is some out-of-date documentation out there that doesn't mention the newer const, including Rust by Example.