fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[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 | 4LL | const BAR: u32 = IMPL_REF_BAR; 5 | ^^^^^^^^^^^^ 6 | 7note: ...which requires simplifying constant for the type system `IMPL_REF_BAR`... 8 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1 9 | 10LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR; 11 | ^^^^^^^^^^^^^^^^^^^^^^^ 12note: ...which requires simplifying constant for the type system `IMPL_REF_BAR`... 13 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:1 14 | 15LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR; 16 | ^^^^^^^^^^^^^^^^^^^^^^^ 17note: ...which requires const-evaluating + checking `IMPL_REF_BAR`... 18 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:7:27 19 | 20LL | const IMPL_REF_BAR: u32 = GlobalImplRef::BAR; 21 | ^^^^^^^^^^^^^^^^^^ 22note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`... 23 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5 24 | 25LL | const BAR: u32 = IMPL_REF_BAR; 26 | ^^^^^^^^^^^^^^ 27note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR`... 28 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5 29 | 30LL | const BAR: u32 = IMPL_REF_BAR; 31 | ^^^^^^^^^^^^^^ 32note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-static-recursion-impl.rs:11:1: 11:19>::BAR` for CTFE... 33 --> $DIR/issue-24949-assoc-const-static-recursion-impl.rs:12:5 34 | 35LL | const BAR: u32 = IMPL_REF_BAR; 36 | ^^^^^^^^^^^^^^ 37 = 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 38 = note: cycle used when running analysis passes on this crate 39 = note: see https://rustc-dev-guide.rust-lang.org/overview.html#queries and https://rustc-dev-guide.rust-lang.org/query.html for more information 40 41error: aborting due to previous error 42 43For more information about this error, try `rustc --explain E0391`.