2021-12-24 10:33:23 -06:00
|
|
|
// Regression test for #92230.
|
|
|
|
//
|
|
|
|
// check-pass
|
|
|
|
|
|
|
|
#![feature(const_trait_impl)]
|
|
|
|
|
2022-08-28 01:27:31 -05:00
|
|
|
#[const_trait]
|
2021-12-24 10:33:23 -06:00
|
|
|
pub trait Super {}
|
2022-08-28 01:27:31 -05:00
|
|
|
#[const_trait]
|
2021-12-24 10:33:23 -06:00
|
|
|
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() {}
|