Created
August 20, 2016 20:13
-
-
Save tomaka/f6231d841d52d40be27258cac3c9aeba 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 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