2 struct Foo<const N: usize>;
4 impl<const N: usize> Foo<N> {
11 }]` is forbidden as the type of a const generic parameter
12 --> $DIR/nested-type.rs:6:21
14 LL | struct Foo<const N: [u8; {
15 | _____________________^
16 LL | | struct Foo<const N: usize>;
18 LL | | impl<const N: usize> Foo<N> {
24 = note: the only supported types are integers, `bool` and `char`
25 = help: more complex types are supported with `#![feature(adt_const_params)]`
27 error: aborting due to previous error