1 error[E0391]: cycle detected when computing type of `Foo::X`
2 --> $DIR/cycle-trait-default-type-trait.rs:4:23
4 LL | trait Foo<X = Box<dyn Foo>> {
7 = note: ...which immediately requires computing type of `Foo::X` again
8 note: cycle used when collecting item types in top-level module
9 --> $DIR/cycle-trait-default-type-trait.rs:4:1
11 LL | trait Foo<X = Box<dyn Foo>> {
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error[E0391]: cycle detected when computing type of `Foo::X`
15 --> $DIR/cycle-trait-default-type-trait.rs:4:23
17 LL | trait Foo<X = Box<dyn Foo>> {
20 = note: ...which immediately requires computing type of `Foo::X` again
21 note: cycle used when collecting item types in top-level module
22 --> $DIR/cycle-trait-default-type-trait.rs:4:1
24 LL | trait Foo<X = Box<dyn Foo>> {
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0391`.