// Regression test for #92230. // // check-pass #![feature(const_trait_impl)] pub trait Super {} pub trait Sub: Super {} impl const Super for &A where A: ~const Super {} impl const Sub for &A where A: ~const Sub {} fn main() {}