Guest User

Untitled

a guest
Dec 15th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. use std::mem::transmute;
  2.  
  3. struct Thing;
  4.  
  5. fn main() {
  6. const SIZE : usize = 99;
  7. let array : [ Option<Box<Thing>>; SIZE ] = unsafe {
  8. transmute([0usize; SIZE])
  9. };
  10. }
Add Comment
Please, Sign In to add comment