2024-10-21 15:16:33 -05:00
|
|
|
//@ compile-flags: -Znext-solver
|
|
|
|
//@ known-bug: #132067
|
|
|
|
//@ check-pass
|
|
|
|
|
2024-10-30 13:03:44 -05:00
|
|
|
#![feature(const_trait_impl)]
|
2024-10-21 15:16:33 -05:00
|
|
|
|
|
|
|
struct S;
|
|
|
|
#[const_trait]
|
|
|
|
trait Trait<const N: u32> {}
|
|
|
|
|
|
|
|
const fn f<
|
|
|
|
T: Trait<
|
|
|
|
{
|
|
|
|
struct I<U: ~const Trait<0>>(U);
|
|
|
|
0
|
|
|
|
},
|
|
|
|
>,
|
|
|
|
>() {
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {}
|