Files
rust/tests/ui/const-generics/mgca/array-expr-with-tuple.rs
2026-07-20 18:24:17 +02:00

19 lines
406 B
Rust

//@ run-pass
#![feature(
min_generic_const_args,
macroless_generic_const_args,
adt_const_params,
unsized_const_params
)]
#![expect(incomplete_features)]
#![allow(dead_code)]
fn takes_tuple<const T: ([u32; 2], u32, [u32; 2])>() {}
fn generic_caller<const N: u32, const M: u32>() {
takes_tuple::<{ ([N, M], 5, [M, N]) }>();
takes_tuple::<{ ([1, 2], 3, [4, 5]) }>();
}
fn main() {}