Created
March 11, 2019 01:58
-
-
Save kunigami/14cd24195a4b53f4bc85d4d7e0931a1d 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
fn dangle() -> &Vec<i32> { | |
let v = vec![1, 2, 3]; | |
&v | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment