blob: 0eb7f54d596fbeeeac70831502cdf7586b2d6f57 [file] [log] [blame] [edit]
// Regression test for #92230.
//
//@ check-pass
//@ compile-flags: -Znext-solver
#![feature(const_trait_impl)]
#[const_trait]
pub trait Super {}
#[const_trait]
pub trait Sub: Super {}
impl<A> const Super for &A where A: [const] Super {}
impl<A> const Sub for &A where A: [const] Sub {}
fn main() {}