]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch08-common-collections/listing-08-23/src/main.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch08-common-collections / listing-08-23 / src / main.rs
1 fn main() {
2 // ANCHOR: here
3 use std::collections::HashMap;
4
5 let mut scores = HashMap::new();
6
7 scores.insert(String::from("Blue"), 10);
8 scores.insert(String::from("Blue"), 25);
9
10 println!("{:?}", scores);
11 // ANCHOR_END: here
12 }