← Back to archive

Stdle #163 · iteration · 2026-11-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..=4).rev().collect();
println!("{:?}", v);
}
Iteration
4 attempts left

Answer & explanation