2020-08-26 18:22:55 +08:00
|
|
|
// [full] check-pass
|
|
|
|
// revisions: full min
|
2021-08-30 10:59:53 +02:00
|
|
|
#![cfg_attr(full, feature(adt_const_params))]
|
2020-08-26 18:22:55 +08:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-07-09 22:26:49 +02:00
|
|
|
|
|
|
|
fn test<const N: [u8; 1 + 2]>() {}
|
2023-01-14 18:32:17 +00:00
|
|
|
//[min]~^ ERROR `[u8; 1 + 2]` is forbidden as the type of a const generic parameter
|
2020-07-09 22:26:49 +02:00
|
|
|
|
|
|
|
struct Foo<const N: [u8; 1 + 2]>;
|
2023-01-14 18:32:17 +00:00
|
|
|
//[min]~^ ERROR `[u8; 1 + 2]` is forbidden as the type of a const generic parameter
|
2020-07-09 22:26:49 +02:00
|
|
|
|
|
|
|
fn main() {}
|