Skip to content

Instantly share code, notes, and snippets.

@kunigami
Last active March 13, 2019 17:53
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/91c7979977cf45098949d85b04674004 to your computer and use it in GitHub Desktop.
Save kunigami/91c7979977cf45098949d85b04674004 to your computer and use it in GitHub Desktop.
let vec1 = vec![1, 2, 3];
{
let vec2 = vec![];
let result = get_largest_with_lifetime(&vec1, &vec2);
println!("{}", result.len());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment