A scope is a region of source code where a binding is accessible. When its owner leaves scope, Rust drops the owned value. section 2.1
Scope matters because ownership follows it:
- Each value has one variable owner at a time. section 2.1
- Passing an owned value to admire_art moves it, so the original binding cannot be used again. section 2.1
A moved artwork
After admire_art(art1), art1 has been moved into the function. Calling admire_art(art1) again produces a use-of-moved-value error rather than silently reusing the value. section 2.1




















