Stdle #116 · ownership · 2026-09-30
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn shout(s: String) -> String { s + "!"}fn main() { let m = String::from("hi"); let m = shout(m); println!("{}", m);}Ownership