fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when elaborating drops for `FooDefault::BAR` 2 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:22 3 | 4LL | const BAR: u32 = DEFAULT_REF_BAR; 5 | ^^^^^^^^^^^^^^^ 6 | 7note: ...which requires simplifying constant for the type system `DEFAULT_REF_BAR`... 8 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1 9 | 10LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR; 11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 12note: ...which requires simplifying constant for the type system `DEFAULT_REF_BAR`... 13 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:1 14 | 15LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR; 16 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 17note: ...which requires const-evaluating + checking `DEFAULT_REF_BAR`... 18 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:11:30 19 | 20LL | const DEFAULT_REF_BAR: u32 = <GlobalDefaultRef>::BAR; 21 | ^^^^^^^^^^^^^^^^^^^^^^^ 22note: ...which requires simplifying constant for the type system `FooDefault::BAR`... 23 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:5 24 | 25LL | const BAR: u32 = DEFAULT_REF_BAR; 26 | ^^^^^^^^^^^^^^ 27note: ...which requires const-evaluating + checking `FooDefault::BAR`... 28 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:5 29 | 30LL | const BAR: u32 = DEFAULT_REF_BAR; 31 | ^^^^^^^^^^^^^^ 32note: ...which requires caching mir of `FooDefault::BAR` for CTFE... 33 --> $DIR/issue-24949-assoc-const-static-recursion-trait-default.rs:8:5 34 | 35LL | const BAR: u32 = DEFAULT_REF_BAR; 36 | ^^^^^^^^^^^^^^ 37 = note: ...which again requires elaborating drops for `FooDefault::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`.