← Back to archive

Stdle #164 · scope · 2026-11-17

What does this Rust snippet output?

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

fn main() {
let name = "abc";
let name = name.chars().count();
let name = name * 2;
println!("{}", name);
}
Scope
4 attempts left

Answer & explanation