Last active
December 5, 2016 17:45
-
-
Save kenzan100/893a6e823569dc76ab554f80d09efb67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fn make_v() { | |
let mut v = vec![2, 4]; // owned by make_v's scope | |
v.push(8); | |
// scope ends, `v` is destroyed | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment