← Back to archive

Stdle #71 · iteration · 2026-08-16

What does this Rust snippet output?

A past puzzle — fully playable. 4 attempts, hints on wrong guesses.

fn main() {
let v: Vec<i32> = (1..5).collect();
println!("{:?} len {}", v, v.len());
}
Iteration
4 attempts left

Answer & explanation