Guest User

Untitled

a guest
Jun 25th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #![feature(try_reserve)]
  2.  
  3. fn main() {
  4. for i in 1.. {
  5. let mut v = Vec::<u8>::new();
  6. v.try_reserve(1024 * 1024 * 1024 * 1024 * 10).unwrap();
  7. std::mem::forget(v);
  8. println!("{} petabytes allocated", i)
  9. }
  10. }
Add Comment
Please, Sign In to add comment