Rust concepts

Rust · Ownership

Rust Ownership puzzles

3 Rust puzzles on ownership. Read the snippet, guess the output, then reveal the answer and why Rust behaves that way.