← Back to archive

Stdle #55 · strings · 2026-07-31

What does this Rust snippet output?

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

fn main() {
let a = String::from("foo");
let b = String::from("bar");
let c = a + &b;
println!("{}", c);
}
Strings
4 attempts left

Answer & explanation