#![allow(dead_code, deprecated, unused_variables, unused_mut)] #![feature(lazy_get)] use std::cell::LazyCell; fn main() { let mut lazy = LazyCell::new(|| 92); assert_eq!(LazyCell::get_mut(& mut lazy), None); let _ = LazyCell::force(&lazy); *LazyCell::get_mut(&mut lazy).unwrap() = 44; assert_eq!(* lazy, 44); }