blob: ea7188810db07f1e6897b4c187e15e18effdea77 [file]
//@ check-pass
#![allow(incomplete_features)]
#![feature(specialization)]
// Tests that you can use a trait's associated types in the bounds of a default impl.
// Regression test for #52396.
trait Foo {
type Baz;
fn bar(&self, _: Self::Baz);
}
default impl<A: Foo<Baz = isize>> Foo for A {
fn bar(&self, _: isize) { }
}
fn main() {}