I need global const or static variable of HashSet. (Actually not HashSet but Array of HashSet).
const foo: HashSet<usize> = vec![0, 1, 2].into_iter().collect();
The above code outputs two kinds of errors.
“constants are not allowed to have destructors”
“method calls in constants are limited to constant inherent methods”
How can I avoid these errors?