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