← Back to archive

Stdle #6 · 2026-06-12

What does this log?

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

fn main() {
let x = 5;
let y = 10;
let s = match (x, y) {
(a, b) if a + b == 15 => "fifteen",
(a, b) if a > b => "first bigger",
_ => "other",
};
println!("{}", s);
}
Comparisons
4 attempts left

Answer & explanation