#![allow(dead_code, deprecated, unused_variables, unused_mut)] use std::fmt; struct Point { x: i32, y: i32, } impl fmt::Display for Point { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { write!(f, "({}, {})", self.x, self.y) } } fn main() { let origin = Point { x: 0, y: 0 }; assert_eq!(format!("The origin is: {origin}"), "The origin is: (0, 0)"); }