#![expect(incomplete_features)] #![feature(min_generic_const_args, adt_const_params)] fn takes_array() {} fn generic_caller() { // not supported yet takes_array::<{ [1, 2, 1 + 2] }>(); //~^ ERROR: complex const arguments must be placed inside of a `const` block takes_array::<{ [X; 3] }>(); //~^ ERROR: complex const arguments must be placed inside of a `const` block takes_array::<{ [0; Y] }>(); //~^ ERROR: complex const arguments must be placed inside of a `const` block } fn main() {}