blob: d658753eb242bc80500ef73819f13f91dbb3d754 [file] [log] [blame]
// Test a cycle where a type parameter on a trait has a default that
// again references the trait.
trait Foo<X = Box<Foo>> {
//~^ ERROR cycle detected
}
fn main() { }