summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
blob: 9d715f49471463f94d333cc8c2bab63389117b37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0391]: cycle detected when computing type of `Foo::X`
  --> $DIR/cycle-trait-default-type-trait.rs:4:23
   |
LL | trait Foo<X = Box<dyn Foo>> {
   |                       ^^^
   |
   = note: ...which immediately requires computing type of `Foo::X` again
note: cycle used when collecting item types in top-level module
  --> $DIR/cycle-trait-default-type-trait.rs:4:1
   |
LL | / trait Foo<X = Box<dyn Foo>> {
LL | |
LL | | }
LL | |
LL | | fn main() { }
   | |_____________^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0391`.