trait Foo { type Bar where Self: Foo<()>; } trait Cake {} impl Cake for () {} fn foo(_: &dyn Foo<()>) {} //~ ERROR: the value of the associated type `Bar` (from trait `Foo`) must be specified fn bar(_: &dyn Foo) {} //~ ERROR: the value of the associated type `Bar` (from trait `Foo`) must be specified fn main() {}