//@ edition:2021 trait Foo {} impl dyn Foo { fn hi(_x: T) {} } fn main() { Foo::hi(123); //~^ ERROR expected a type, found a trait }