use std::fmt::{Display, Formatter};

struct HelloWorld;

impl Display for HelloWorld {
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
write!(f,"Hello world!")
}
}

fn main() {
println!("{HelloWorld}")
}