Skip to content

Instantly share code, notes, and snippets.

@tomaka
Created August 20, 2016 20:13
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 tomaka/f6231d841d52d40be27258cac3c9aeba to your computer and use it in GitHub Desktop.
Save tomaka/f6231d841d52d40be27258cac3c9aeba to your computer and use it in GitHub Desktop.
fn test_smallvec(val1: u32, val2: u32) {
let array: SmallVec<[_; 2]> = [val1, val2].iter().cloned().collect();
ptr(array.as_ptr());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment