Created
March 9, 2019 04:30
-
-
Save kunigami/d61df2714cd81456041184504c69fa2f to your computer and use it in GitHub Desktop.
This file contains 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
let mut vec1 = vec![1, 2, 3]; | |
{ | |
let vec2 = &vec1; | |
let vec3 = &vec1; | |
println!("{} {}", vec2.len(), vec3.len()); | |
} | |
println!("{}", vec1.len()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment