static mut LEAKER: Option>> = None; fn main() { // Having memory "leaked" in globals is allowed. unsafe { LEAKER = Some(Box::new(vec![0; 42])); } }