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