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
4 LL | const BAR: u32 = IMPL_REF_BAR;
7 note: ...which requires const-evaluating + checking `IMPL_REF_BAR`...
8 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1
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
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
20 LL | const BAR: u32 = IMPL_REF_BAR;
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
25 LL | const BAR: u32 = IMPL_REF_BAR;
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
30 error: aborting due to previous error
32 For more information about this error, try `rustc --explain E0391`.