]>
Commit | Line | Data |
---|---|---|
f9f354fc | 1 | error[E0391]: cycle detected when computing type of `Foo::X` |
dc9dc135 | 2 | --> $DIR/cycle-trait-default-type-trait.rs:4:23 |
b7449926 | 3 | | |
dc9dc135 XL |
4 | LL | trait Foo<X = Box<dyn Foo>> { |
5 | | ^^^ | |
b7449926 | 6 | | |
94222f64 | 7 | = note: ...which immediately requires computing type of `Foo::X` again |
0731742a XL |
8 | note: cycle used when collecting item types in top-level module |
9 | --> $DIR/cycle-trait-default-type-trait.rs:4:1 | |
10 | | | |
064997fb FG |
11 | LL | / trait Foo<X = Box<dyn Foo>> { |
12 | LL | | | |
064997fb FG |
13 | LL | | } |
14 | LL | | | |
15 | LL | | fn main() { } | |
16 | | |_____________^ | |
dfeec247 | 17 | |
f2b60f7d | 18 | error: aborting due to previous error |
b7449926 XL |
19 | |
20 | For more information about this error, try `rustc --explain E0391`. |