]> git.proxmox.com Git - rustc.git/blame - src/test/ui/issues/issue-23302-3.stderr
New upstream version 1.60.0+dfsg1
[rustc.git] / src / test / ui / issues / issue-23302-3.stderr
CommitLineData
1b1a35ee 1error[E0391]: cycle detected when simplifying constant for the type system `A`
f9f354fc 2 --> $DIR/issue-23302-3.rs:1:1
0531ce1d 3 |
532ac7d7 4LL | const A: i32 = B;
f9f354fc 5 | ^^^^^^^^^^^^^^^^^
0531ce1d 6 |
1b1a35ee 7note: ...which requires simplifying constant for the type system `A`...
f9f354fc 8 --> $DIR/issue-23302-3.rs:1:1
83c7162d 9 |
f9f354fc
XL
10LL | const A: i32 = B;
11 | ^^^^^^^^^^^^^^^^^
1b1a35ee 12note: ...which requires const-evaluating + checking `A`...
e74abb32
XL
13 --> $DIR/issue-23302-3.rs:1:1
14 |
15LL | const A: i32 = B;
16 | ^^^^^^^^^^^^^^^^^
f9f354fc 17 = note: ...which requires normalizing `B`...
1b1a35ee 18note: ...which requires simplifying constant for the type system `B`...
f9f354fc
XL
19 --> $DIR/issue-23302-3.rs:3:1
20 |
21LL | const B: i32 = A;
22 | ^^^^^^^^^^^^^^^^^
1b1a35ee 23note: ...which requires simplifying constant for the type system `B`...
f9f354fc
XL
24 --> $DIR/issue-23302-3.rs:3:1
25 |
26LL | const B: i32 = A;
27 | ^^^^^^^^^^^^^^^^^
1b1a35ee 28note: ...which requires const-evaluating + checking `B`...
f9f354fc
XL
29 --> $DIR/issue-23302-3.rs:3:1
30 |
31LL | const B: i32 = A;
32 | ^^^^^^^^^^^^^^^^^
33 = note: ...which requires normalizing `A`...
1b1a35ee 34 = note: ...which again requires simplifying constant for the type system `A`, completing the cycle
f9f354fc 35 = note: cycle used when running analysis passes on this crate
0531ce1d 36
dc9dc135 37error: aborting due to previous error
0531ce1d
XL
38
39For more information about this error, try `rustc --explain E0391`.