Coming from a C++ background, trying to learn Rust.
static mut states: HashMap<String, Box<dyn StateFunc>> = HashMap{};
Want to create a global hashmap and initialize it.
--> src/main.rs:10:58
|
10 | static mut states: HashMap<String, Box<dyn StateFunc>> = HashMap{};
| ^^^^^^^ missing `base`
already googled, no results. please help.