|
1 |
| -error[E0391]: cycle detected when const-evaluating + checking `Tr::A` |
2 |
| - --> $DIR/defaults-cyclic-fail.rs:5:5 |
| 1 | +error[E0391]: cycle detected when normalizing `<() as Tr>::A` |
| 2 | + | |
| 3 | +note: ...which requires const-evaluating + checking `Tr::A`... |
| 4 | + --> $DIR/defaults-cyclic-fail.rs:6:5 |
3 | 5 | |
|
4 | 6 | LL | const A: u8 = Self::B;
|
5 | 7 | | ^^^^^^^^^^^^^^^^^^^^^^
|
| 8 | +note: ...which requires const-evaluating + checking `Tr::A`... |
| 9 | + --> $DIR/defaults-cyclic-fail.rs:6:5 |
6 | 10 | |
|
| 11 | +LL | const A: u8 = Self::B; |
| 12 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
7 | 13 | note: ...which requires const-evaluating `Tr::A`...
|
8 |
| - --> $DIR/defaults-cyclic-fail.rs:5:19 |
| 14 | + --> $DIR/defaults-cyclic-fail.rs:6:5 |
9 | 15 | |
|
10 | 16 | LL | const A: u8 = Self::B;
|
11 |
| - | ^^^^^^^ |
| 17 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 18 | + = note: ...which requires normalizing `<() as Tr>::B`... |
| 19 | +note: ...which requires const-evaluating + checking `Tr::B`... |
| 20 | + --> $DIR/defaults-cyclic-fail.rs:8:5 |
| 21 | + | |
| 22 | +LL | const B: u8 = Self::A; |
| 23 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
12 | 24 | note: ...which requires const-evaluating + checking `Tr::B`...
|
13 | 25 | --> $DIR/defaults-cyclic-fail.rs:8:5
|
14 | 26 | |
|
15 | 27 | LL | const B: u8 = Self::A;
|
16 | 28 | | ^^^^^^^^^^^^^^^^^^^^^^
|
17 | 29 | note: ...which requires const-evaluating `Tr::B`...
|
18 |
| - --> $DIR/defaults-cyclic-fail.rs:8:19 |
| 30 | + --> $DIR/defaults-cyclic-fail.rs:8:5 |
19 | 31 | |
|
20 | 32 | LL | const B: u8 = Self::A;
|
21 |
| - | ^^^^^^^ |
22 |
| - = note: ...which again requires const-evaluating + checking `Tr::A`, completing the cycle |
| 33 | + | ^^^^^^^^^^^^^^^^^^^^^^ |
| 34 | + = note: ...which again requires normalizing `<() as Tr>::A`, completing the cycle |
23 | 35 | note: cycle used when const-evaluating `main`
|
24 |
| - --> $DIR/defaults-cyclic-fail.rs:16:16 |
| 36 | + --> $DIR/defaults-cyclic-fail.rs:14:1 |
25 | 37 | |
|
26 |
| -LL | assert_eq!(<() as Tr>::A, 0); |
27 |
| - | ^^^^^^^^^^^^^ |
| 38 | +LL | fn main() { |
| 39 | + | ^^^^^^^^^ |
28 | 40 |
|
29 | 41 | error: aborting due to previous error
|
30 | 42 |
|
|
0 commit comments