Stdle #73 · ownership · 2026-08-18
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { let original = String::from("keep"); { let copy = original.clone(); println!("{}", copy.len()); } println!("{}", original);}Ownership