1 2 3 4 5 6 7 8 9 10
#[global_allocator] static ALLOC: alloc_geiger::System = alloc_geiger::System::new(); fn main() { let mut vec = Vec::new(); for i in 0..100_000_000 { // We'll get sound each time this reallocates. vec.push(i); } }