← Back to archive

Stdle #159 · iteration · 2026-11-12

What does this Rust snippet output?

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

fn main() {
let s: String = ('a'..='e')
.filter(|c| *c != 'c')
.collect();
println!("{}", s);
}
Iteration
4 attempts left

Answer & explanation