Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumRustcollect and turbofishSingle-choice MCQ

What does this turbofish call produce?

use std::collections::HashMap; let pairs = vec![("a", 1), ("b", 2), ("a", 3)]; let map = pairs.into_iter().collect::<HashMap<_, _>>(); println!("{}", map["a"]);