about summary refs log tree commit diff
path: root/tests/ui/issues/issue-17252.stderr
blob: 56bc32b19ab738b5c5b6553cb40b2ac266cc3e0f (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
error[E0391]: cycle detected when simplifying constant for the type system `FOO`
  --> $DIR/issue-17252.rs:1:1
   |
LL | const FOO: usize = FOO;
   | ^^^^^^^^^^^^^^^^
   |
note: ...which requires const-evaluating + checking `FOO`...
  --> $DIR/issue-17252.rs:1:20
   |
LL | const FOO: usize = FOO;
   |                    ^^^
   = note: ...which again requires simplifying constant for the type system `FOO`, completing the cycle
   = note: cycle used when running analysis passes on this crate
   = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information

error[E0391]: cycle detected when simplifying constant for the type system `main::BAR`
  --> $DIR/issue-17252.rs:6:9
   |
LL |         const BAR: usize = BAR;
   |         ^^^^^^^^^^^^^^^^
   |
note: ...which requires const-evaluating + checking `main::BAR`...
  --> $DIR/issue-17252.rs:6:28
   |
LL |         const BAR: usize = BAR;
   |                            ^^^
   = note: ...which again requires simplifying constant for the type system `main::BAR`, completing the cycle
   = note: cycle used when running analysis passes on this crate
   = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information

error: aborting due to 2 previous errors

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