#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::cell::LazyCell; fn main() { let hello = "Hello, World!".to_string(); let lazy = LazyCell::new(|| hello.to_uppercase()); assert_eq!(&* lazy, "HELLO, WORLD!"); }