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