blob: ca24e37d9bb11b4b5d2027cc0dd1991a5583af6f [file] [log] [blame]
#![allow(warnings)]
trait Trait<T> {
fn foo(_: T) {}
}
pub struct Foo<T = Box<Trait<DefaultFoo>>>; //~ ERROR cycle detected
type DefaultFoo = Foo;
fn main() {
}