mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-03 17:48:43 +00:00
19 lines
406 B
Rust
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() {}
|