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