Stdle #141 · ownership · 2026-10-25
What does this Rust snippet output?
A past puzzle — fully playable. 4 attempts, hints on wrong guesses.
fn main() { let v = vec![10, 20, 30]; let first = v[0]; let total = first + v[1] + v[2]; println!("{} {}", first, total);}Ownership