1 error[E0391]: cycle detected when const-evaluating + checking `Tr::A`
2 --> $DIR/defaults-cyclic-fail.rs:5:19
4 LL | const A: u8 = Self::B;
7 note: ...which requires const-evaluating + checking `Tr::B`...
8 --> $DIR/defaults-cyclic-fail.rs:8:19
10 LL | const B: u8 = Self::A;
12 = note: ...which again requires const-evaluating + checking `Tr::A`, completing the cycle
13 note: cycle used when const-evaluating + checking `main::promoted[1]`
14 --> $DIR/defaults-cyclic-fail.rs:16:16
16 LL | assert_eq!(<() as Tr>::A, 0);
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0391`.