1 2 3 4 5 6
fn foo<T: std::fmt::Display>() {} fn main() { let x = foo::<()>; //~^ ERROR `()` doesn't implement `std::fmt::Display` }