]>
Commit | Line | Data |
---|---|---|
ba9703b0 XL |
1 | error[E0391]: cycle detected when normalizing `<() as Tr>::A` |
2 | | | |
1b1a35ee | 3 | note: ...which requires simplifying constant for the type system `Tr::A`... |
ba9703b0 | 4 | --> $DIR/defaults-cyclic-fail.rs:6:5 |
74b04a01 XL |
5 | | |
6 | LL | const A: u8 = Self::B; | |
7 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 8 | note: ...which requires simplifying constant for the type system `Tr::A`... |
ba9703b0 | 9 | --> $DIR/defaults-cyclic-fail.rs:6:5 |
74b04a01 | 10 | | |
ba9703b0 XL |
11 | LL | const A: u8 = Self::B; |
12 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 13 | note: ...which requires const-evaluating + checking `Tr::A`... |
ba9703b0 | 14 | --> $DIR/defaults-cyclic-fail.rs:6:5 |
74b04a01 XL |
15 | | |
16 | LL | const A: u8 = Self::B; | |
ba9703b0 XL |
17 | | ^^^^^^^^^^^^^^^^^^^^^^ |
18 | = note: ...which requires normalizing `<() as Tr>::B`... | |
1b1a35ee | 19 | note: ...which requires simplifying constant for the type system `Tr::B`... |
ba9703b0 XL |
20 | --> $DIR/defaults-cyclic-fail.rs:8:5 |
21 | | | |
22 | LL | const B: u8 = Self::A; | |
23 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 24 | note: ...which requires simplifying constant for the type system `Tr::B`... |
74b04a01 XL |
25 | --> $DIR/defaults-cyclic-fail.rs:8:5 |
26 | | | |
27 | LL | const B: u8 = Self::A; | |
28 | | ^^^^^^^^^^^^^^^^^^^^^^ | |
1b1a35ee | 29 | note: ...which requires const-evaluating + checking `Tr::B`... |
ba9703b0 | 30 | --> $DIR/defaults-cyclic-fail.rs:8:5 |
74b04a01 XL |
31 | | |
32 | LL | const B: u8 = Self::A; | |
ba9703b0 XL |
33 | | ^^^^^^^^^^^^^^^^^^^^^^ |
34 | = note: ...which again requires normalizing `<() as Tr>::A`, completing the cycle | |
1b1a35ee | 35 | note: cycle used when const-evaluating + checking `main::promoted[2]` |
ba9703b0 | 36 | --> $DIR/defaults-cyclic-fail.rs:14:1 |
74b04a01 | 37 | | |
ba9703b0 XL |
38 | LL | fn main() { |
39 | | ^^^^^^^^^ | |
74b04a01 XL |
40 | |
41 | error: aborting due to previous error | |
42 | ||
43 | For more information about this error, try `rustc --explain E0391`. |