Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #![feature(try_reserve)]
- fn main() {
- for i in 1.. {
- let mut v = Vec::<u8>::new();
- v.try_reserve(1024 * 1024 * 1024 * 1024 * 10).unwrap();
- std::mem::forget(v);
- println!("{} petabytes allocated", i * 10)
- }
- }
Add Comment
Please, Sign In to add comment