summaryrefslogtreecommitdiffstats
path: root/tests/ui/associated-inherent-types/bugs/cycle-iat-inside-of-adt.stderr
blob: 23269e1afab542a9e0aaa10972f6c19307cf8856 (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
40
41
42
43
error[E0391]: cycle detected when computing predicates of `Foo`
  --> $DIR/cycle-iat-inside-of-adt.rs:7:1
   |
LL | struct Foo {
   | ^^^^^^^^^^
   |
note: ...which requires computing predicates of `Foo`...
  --> $DIR/cycle-iat-inside-of-adt.rs:7:1
   |
LL | struct Foo {
   | ^^^^^^^^^^
note: ...which requires computing inferred outlives predicates of `Foo`...
  --> $DIR/cycle-iat-inside-of-adt.rs:7:1
   |
LL | struct Foo {
   | ^^^^^^^^^^
   = note: ...which requires computing the inferred outlives predicates for items in this crate...
note: ...which requires computing type of `Foo::bar`...
  --> $DIR/cycle-iat-inside-of-adt.rs:8:5
   |
LL |     bar: Self::Bar,
   |     ^^^^^^^^^^^^^^
note: ...which requires computing normalized predicates of `Foo`...
  --> $DIR/cycle-iat-inside-of-adt.rs:7:1
   |
LL | struct Foo {
   | ^^^^^^^^^^
   = note: ...which again requires computing predicates of `Foo`, completing the cycle
note: cycle used when collecting item types in top-level module
  --> $DIR/cycle-iat-inside-of-adt.rs:3:1
   |
LL | / #![feature(inherent_associated_types)]
LL | | #![allow(incomplete_features)]
LL | | // FIXME(inherent_associated_types): This should pass.
LL | |
...  |
LL | |
LL | | fn main() {}
   | |____________^

error: aborting due to previous error

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