2020-09-09 06:28:41 -05:00
|
|
|
// revisions: full min
|
2021-08-30 03:59:53 -05:00
|
|
|
#![cfg_attr(full, feature(adt_const_params, generic_arg_infer))]
|
2020-09-09 06:28:41 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-07-16 06:03:20 -05:00
|
|
|
|
|
|
|
fn foo<const N: usize, const A: [u8; N]>() {}
|
|
|
|
//~^ ERROR the type of const parameters must not
|
2023-01-14 12:32:17 -06:00
|
|
|
//[min]~| ERROR `[u8; N]` is forbidden as the type of a const generic parameter
|
2020-07-16 06:03:20 -05:00
|
|
|
|
|
|
|
fn main() {
|
2022-01-13 18:17:09 -06:00
|
|
|
foo::<_, { [1] }>();
|
2020-07-16 06:03:20 -05:00
|
|
|
}
|