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