#![allow(unused_variables)] fn main() { let x = Box::new(41); let static_ref: &'static mut usize = Box::leak(x); *static_ref += 1; assert_eq!(* static_ref, 42); drop(unsafe { Box::from_raw(static_ref) }); }