Skip to content

Instantly share code, notes, and snippets.

@kunigami
Created March 11, 2019 01:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kunigami/14cd24195a4b53f4bc85d4d7e0931a1d to your computer and use it in GitHub Desktop.
Save kunigami/14cd24195a4b53f4bc85d4d7e0931a1d to your computer and use it in GitHub Desktop.
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