← Back to archive

Stdle #109 · scope · 2026-09-23

What does this Rust snippet output?

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

const MAX: i32 = 100;
fn main() {
let x = 5;
let x = x + MAX;
println!("{}", x);
}
Scope
4 attempts left

Answer & explanation