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