Created
March 13, 2018 15:33
-
-
Save rust-play/411e5f6d29c547de7fdc3d9183fcbef5 to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
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 main() { | |
let mut v = vec![1, 2, 3, 4, 5]; | |
let first = &v[0]; | |
v.push(6); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment