← Back to archive

Stdle #79 · scope · 2026-08-24

What does this Rust snippet output?

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

fn main() {
let mut x = 5;
x = x + 1;
let x = x.to_string();
println!("{}", x);
}
Scope
4 attempts left

Answer & explanation