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

What is the result of collecting an iterator of `Result`s into `Result<Vec<_>, _>`?

let inputs = ["1", "2", "x", "4"]; let parsed: Result<Vec<i32>, _> = inputs.iter().map(|s| s.parse::<i32>()).collect();