Created
June 4, 2013 23:00
-
-
Save MarkJr94/5710367 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 empty_vec<T>() -> ~[T] { | |
let v: ~[T] = ~[]; | |
v | |
} | |
fn main() { | |
let mut v_int = empty_vec<int>(); | |
let mut v_float = empty_vec<float>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment