]> git.proxmox.com Git - rustc.git/blame - 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
CommitLineData
74b04a01
XL
1fn main() {
2 // ANCHOR: here
3 use std::collections::HashMap;
4
5 let mut scores = HashMap::new();
6
7 scores.insert(String::from("Blue"), 10);
923072b8 8 scores.insert(String::from("Blue"), 25);
74b04a01 9
923072b8 10 println!("{:?}", scores);
74b04a01
XL
11 // ANCHOR_END: here
12}