blob: f7dc2fb88390f3b920d0b857a48e611d58466d95 [file] [log] [blame]
trait Foo<T> {
type Bar
where
Self: Foo<()>;
}
trait Cake {}
impl Cake for () {}
fn foo(_: &dyn Foo<()>) {} //~ ERROR: the value of the associated type `Bar` in `Foo` must be specified
fn bar(_: &dyn Foo<i32>) {} //~ ERROR: the value of the associated type `Bar` in `Foo` must be specified
fn main() {}