fn main() {
use std::collections::HashMap;
//let mut scores1 = HashMap::new(); //作成後にinsertがないとエラーになる
let mut scores2:HashMap<String, u32> = HashMap::new();
}
HashMap<K, V>
2022/2/19 17:17:00
fn main() {
use std::collections::HashMap;
//let mut scores1 = HashMap::new(); //作成後にinsertがないとエラーになる
let mut scores2:HashMap<String, u32> = HashMap::new();
}