]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr
New upstream version 1.61.0+dfsg1
[rustc.git] / src / test / ui / associated-consts / issue-24949-assoc-const-static-recursion-impl.stderr
CommitLineData
ee023bcb
FG
1error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`
2 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
3 |
4LL | const BAR: u32 = IMPL_REF_BAR;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6 |
7 = note: ...which requires normalizing `IMPL_REF_BAR`...
8note: ...which requires simplifying constant for the type system `IMPL_REF_BAR`...
f9f354fc
XL
9 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
10 |
11LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1b1a35ee 13note: ...which requires simplifying constant for the type system `IMPL_REF_BAR`...
f9f354fc
XL
14 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
15 |
16LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1b1a35ee 18note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
f9f354fc
XL
19 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
20 |
21LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 = note: ...which requires normalizing `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
1b1a35ee 24note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
f9f354fc
XL
25 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
26 |
27LL | const BAR: u32 = IMPL_REF_BAR;
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1b1a35ee 29note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
f9f354fc
XL
30 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
31 |
32LL | const BAR: u32 = IMPL_REF_BAR;
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1b1a35ee 34note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`...
f9f354fc
XL
35 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
36 |
37LL | const BAR: u32 = IMPL_REF_BAR;
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5869c6ff 39note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR` for CTFE...
f9f354fc
XL
40 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
41 |
42LL | const BAR: u32 = IMPL_REF_BAR;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ee023bcb 44 = note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 13:2>::BAR`, completing the cycle
f9f354fc
XL
45 = note: cycle used when running analysis passes on this crate
46
47error: aborting due to previous error
48
49For more information about this error, try `rustc --explain E0391`.