blob: 5b05811a4eb3fe769edacb6403e28b234fd216c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![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() {
}
|