Skip to content

Instantly share code, notes, and snippets.

@steven807
Created August 3, 2015 03:31
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 steven807/154400dfbeb24bfc013b to your computer and use it in GitHub Desktop.
Save steven807/154400dfbeb24bfc013b to your computer and use it in GitHub Desktop.
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