|
1 |
| -error[E0391]: cycle detected when const-evaluating + checking `Foo::B::{{constant}}#0` |
| 1 | +error[E0391]: cycle detected when const checking `Foo::B::{{constant}}#0` |
2 | 2 | --> $DIR/issue-36163.rs:4:9
|
3 | 3 | |
|
4 | 4 | LL | B = A,
|
5 | 5 | | ^
|
6 | 6 | |
|
7 |
| -note: ...which requires const-evaluating + checking `Foo::B::{{constant}}#0`... |
8 |
| - --> $DIR/issue-36163.rs:4:9 |
| 7 | +note: ...which requires const checking `A`... |
| 8 | + --> $DIR/issue-36163.rs:1:18 |
9 | 9 | |
|
10 |
| -LL | B = A, |
11 |
| - | ^ |
12 |
| -note: ...which requires const-evaluating `Foo::B::{{constant}}#0`... |
| 10 | +LL | const A: isize = Foo::B as isize; |
| 11 | + | ^^^^^^^^^^^^^^^ |
| 12 | + = note: ...which again requires const checking `Foo::B::{{constant}}#0`, completing the cycle |
| 13 | +note: cycle used when processing `Foo::B::{{constant}}#0` |
13 | 14 | --> $DIR/issue-36163.rs:4:9
|
14 | 15 | |
|
15 | 16 | LL | B = A,
|
16 | 17 | | ^
|
17 |
| - = note: ...which requires normalizing `A`... |
18 |
| -note: ...which requires const-evaluating + checking `A`... |
19 |
| - --> $DIR/issue-36163.rs:1:1 |
20 |
| - | |
21 |
| -LL | const A: isize = Foo::B as isize; |
22 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
23 |
| -note: ...which requires const-evaluating + checking `A`... |
24 |
| - --> $DIR/issue-36163.rs:1:1 |
25 |
| - | |
26 |
| -LL | const A: isize = Foo::B as isize; |
27 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
28 |
| -note: ...which requires const-evaluating `A`... |
29 |
| - --> $DIR/issue-36163.rs:1:1 |
30 |
| - | |
31 |
| -LL | const A: isize = Foo::B as isize; |
32 |
| - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
33 |
| - = note: ...which requires normalizing `A`... |
34 |
| - = note: ...which again requires const-evaluating + checking `Foo::B::{{constant}}#0`, completing the cycle |
35 |
| -note: cycle used when collecting item types in top-level module |
36 |
| - --> $DIR/issue-36163.rs:1:1 |
37 |
| - | |
38 |
| -LL | / const A: isize = Foo::B as isize; |
39 |
| -LL | | |
40 |
| -LL | | enum Foo { |
41 |
| -LL | | B = A, |
42 |
| -LL | | } |
43 |
| -LL | | |
44 |
| -LL | | fn main() {} |
45 |
| - | |____________^ |
46 | 18 |
|
47 | 19 | error: aborting due to previous error
|
48 | 20 |
|
|
0 commit comments