fn main() { let my_str = unsafe { std::mem::transmute::<&str, &'static str>(String::from("hello world").as_ref()) }; println!("{my_str}"); }