2020-08-26 05:44:00 -05:00
|
|
|
// [full] check-pass
|
|
|
|
// revisions: full min
|
2021-08-27 11:04:57 -05:00
|
|
|
#![cfg_attr(full, feature(const_param_types))]
|
2020-08-26 05:44:00 -05:00
|
|
|
#![cfg_attr(full, allow(incomplete_features))]
|
2020-04-11 11:05:02 -05:00
|
|
|
|
|
|
|
struct Foo<const V: [usize; 0] > {}
|
2020-08-26 05:44:00 -05:00
|
|
|
//[min]~^ ERROR `[usize; 0]` is forbidden as the type of a const generic parameter
|
2020-04-11 11:05:02 -05:00
|
|
|
|
|
|
|
type MyFoo = Foo<{ [] }>;
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
let _ = Foo::<{ [] }> {};
|
|
|
|
}
|