← Back to archive

Stdle #1 · 2026-06-07

What does this log?

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

fn main() {
let a = 2;
let b = {
let a = a + 1;
let a = a + 1;
a
};
println!("{} {}", a, b);
}
Scope
4 attempts left

Answer & explanation