Thought this would be simple.
Just want to create a hash map where the keys are a tuple (u8, &str) representing the number of a ordered set of problems and the string literal representing the question itself. Then the values would be another tuple (&str, [&str;4]) representing the correct letter and the possible answers
const ANSWER_KEY: HashMap<(u8, &str), (&str, [&str;4])> = HashMap::from {
(1, "What is a programming language?") : ("B", [
"A. A language that improves programming.",
"B. A human readable language for humans that translates to a binary language to communicate with computers.",
"C. A language read by computers that translates to a unary language to communicate with humans.",
"D. A language created by Alan Turing.")
]
};
The error message is: "What is a programmi...' unexpected
and <struct literal field> expected, got '('