]> git.proxmox.com Git - rustc.git/blob - src/test/ui/associated-consts/issue-24949-assoc-const-static-recursion-impl.stderr
New upstream version 1.64.0+dfsg1
[rustc.git] / src / test / ui / associated-consts / issue-24949-assoc-const-static-recursion-impl.stderr
1 error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`
2 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:22
3 |
4 LL | const BAR: u32 = IMPL_REF_BAR;
5 | ^^^^^^^^^^^^
6 |
7 note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
8 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
9 |
10 LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
11 | ^^^^^^^^^^^^^^^^^^^^^^^
12 note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
13 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
14 |
15 LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR;
16 | ^^^^^^^^^^^^^^^^^^^^^^^
17 note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`...
18 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
19 |
20 LL | const BAR: u32 = IMPL_REF_BAR;
21 | ^^^^^^^^^^^^^^
22 note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR` for CTFE...
23 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5
24 |
25 LL | const BAR: u32 = IMPL_REF_BAR;
26 | ^^^^^^^^^^^^^^
27 = note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`, completing the cycle
28 = note: cycle used when running analysis passes on this crate
29
30 error: aborting due to previous error
31
32 For more information about this error, try `rustc --explain E0391`.