summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cycle-trait/cycle-trait-default-type-trait.stderr
blob: d4976a0f9c9cd1c61bd52b2bc62d4728179b66bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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 | |
LL | | fn main() { }
   | |_____________^

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 | |
LL | | fn main() { }
   | |_____________^

error: aborting due to 2 previous errors

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