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