1 error[E0391]: cycle detected when elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`
2 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
4 LL | const BAR: u32 = TRAIT_REF_BAR;
5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7 = note: ...which requires normalizing `TRAIT_REF_BAR`...
8 note: ...which requires simplifying constant for the type system `TRAIT_REF_BAR`...
9 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
11 LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13 note: ...which requires simplifying constant for the type system `TRAIT_REF_BAR`...
14 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
16 LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
17 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
18 note: ...which requires const-evaluating + checking `TRAIT_REF_BAR`...
19 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:7:1
21 LL | const TRAIT_REF_BAR: u32 = <GlobalTraitRef>::BAR;
22 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
23 = note: ...which requires normalizing `<GlobalTraitRef as Foo>::BAR`...
24 note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
25 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
27 LL | const BAR: u32 = TRAIT_REF_BAR;
28 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
29 note: ...which requires simplifying constant for the type system `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
30 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
32 LL | const BAR: u32 = TRAIT_REF_BAR;
33 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34 note: ...which requires const-evaluating + checking `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`...
35 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
37 LL | const BAR: u32 = TRAIT_REF_BAR;
38 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
39 note: ...which requires caching mir of `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR` for CTFE...
40 --> $DIR/issue-24949-assoc-const-static-recursion-trait.rs:12:5
42 LL | const BAR: u32 = TRAIT_REF_BAR;
43 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44 = note: ...which again requires elaborating drops for `<impl at $DIR/issue-24949-assoc-const-static-recursion-trait.rs:11:1: 13:2>::BAR`, completing the cycle
45 = note: cycle used when running analysis passes on this crate
47 error: aborting due to previous error
49 For more information about this error, try `rustc --explain E0391`.