2020-08-26 05:44:00 -05:00
|
|
|
// revisions: full min
|
2021-08-30 03:59:53 -05:00
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
2020-08-26 05:44:00 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-07-16 05:14:03 -05:00
|
|
|
|
|
|
|
fn foo<const LEN: usize, const DATA: [u8; LEN]>() {}
|
2020-08-31 05:35:04 -05:00
|
|
|
//~^ ERROR the type of const parameters must not
|
2023-01-14 12:32:17 -06:00
|
|
|
//[min]~^^ ERROR `[u8; LEN]` is forbidden as the type of a const generic parameter
|
2020-07-16 05:14:03 -05:00
|
|
|
fn main() {
|
|
|
|
const DATA: [u8; 4] = *b"ABCD";
|
|
|
|
foo::<4, DATA>();
|
|
|
|
}
|