blob: cf0effe884e63f00ddbde64a5fe9732bd8819189 [file] [edit]
//@ check-pass
#![feature(
min_generic_const_args,
macroless_generic_const_args,
adt_const_params,
unsized_const_params
)]
#![expect(incomplete_features)]
trait Trait {
type const ASSOC: u32;
}
fn takes_tuple<const A: (u32, u32)>() {}
fn takes_nested_tuple<const A: (u32, (u32, u32))>() {}
fn generic_caller<T: Trait, const N: u32, const N2: u32>() {
takes_tuple::<{ (N, N2) }>();
takes_tuple::<{ (N, T::ASSOC) }>();
takes_nested_tuple::<{ (N, (N, N2)) }>();
takes_nested_tuple::<{ (N, (N, T::ASSOC)) }>();
}
fn main() {}