Created
August 3, 2015 03:31
-
-
Save steven807/154400dfbeb24bfc013b 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
use std::mem; | |
fn main() { | |
let _:[Vec<i32>;2] = { | |
let mut arr: [Vec<i32>; 2] = unsafe { mem::uninitialized() }; | |
arr[0] = Vec::new(); | |
arr[1] = Vec::new(); | |
arr | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment