1 #![feature(associated_type_defaults)]
3 // Having a cycle in assoc. type defaults is okay...
24 // ...but not in an impl that redefines one of the types.
26 type A = Box<Self::B>;
27 //~^ ERROR overflow evaluating the requirement `<bool as Tr>::B == _`
29 // (the error is shown twice for some reason)
32 type B = &'static Self::A;
33 //~^ ERROR overflow evaluating the requirement `<usize as Tr>::A == _`
37 // We don't check that the types project correctly because the cycle errors stop compilation
38 // before `main` is type-checked.
39 // `defaults-cyclic-pass-1.rs` does this.