#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::fmt; fn main() { let s = fmt::format(format_args!("hello {}", "world")); assert_eq!(s, format!("hello {}", "world")); }