2021-12-25 00:33:23 +08:00
|
|
|
// Regression test for #92230.
|
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-06-14 12:16:15 +00:00
|
|
|
//@ compile-flags: -Znext-solver
|
2021-12-25 00:33:23 +08:00
|
|
|
|
2024-10-30 18:03:44 +00:00
|
|
|
#![feature(const_trait_impl)]
|
2021-12-25 00:33:23 +08:00
|
|
|
|
2022-08-28 06:27:31 +00:00
|
|
|
#[const_trait]
|
2021-12-25 00:33:23 +08:00
|
|
|
pub trait Super {}
|
2022-08-28 06:27:31 +00:00
|
|
|
#[const_trait]
|
2021-12-25 00:33:23 +08: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() {}
|