use std::collections::HashMap; let mut scores = HashMap::new(); scores.insert(String::from("Alice"), 95); scores.insert(String::from("Bob"), 87); for (key, value) in &scores { println!("{}: {}", key, value); }