fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0391]: cycle detected when simplifying constant for the type system `Tr::A` 2 --> $DIR/defaults-cyclic-fail.rs:5:5 3 | 4LL | const A: u8 = Self::B; 5 | ^^^^^^^^^^^ 6 | 7note: ...which requires const-evaluating + checking `Tr::A`... 8 --> $DIR/defaults-cyclic-fail.rs:5:19 9 | 10LL | const A: u8 = Self::B; 11 | ^^^^^^^ 12note: ...which requires simplifying constant for the type system `Tr::B`... 13 --> $DIR/defaults-cyclic-fail.rs:8:5 14 | 15LL | const B: u8 = Self::A; 16 | ^^^^^^^^^^^ 17note: ...which requires const-evaluating + checking `Tr::B`... 18 --> $DIR/defaults-cyclic-fail.rs:8:19 19 | 20LL | const B: u8 = Self::A; 21 | ^^^^^^^ 22 = note: ...which again requires simplifying constant for the type system `Tr::A`, completing the cycle 23note: cycle used when const-evaluating + checking `main::promoted[1]` 24 --> $DIR/defaults-cyclic-fail.rs:16:16 25 | 26LL | assert_eq!(<() as Tr>::A, 0); 27 | ^^^^^^^^^^^^^ 28 = 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 29 30error: aborting due to previous error 31 32For more information about this error, try `rustc --explain E0391`.