1 error: `[u8; _]` is forbidden as the type of a const generic parameter
2 --> $DIR/nested-type.rs:6:21
4 LL | struct Foo<const N: [u8; {
5 | _____________________^
6 LL | | struct Foo<const N: usize>;
8 LL | | impl<const N: usize> Foo<N> {
14 = note: the only supported types are integers, `bool` and `char`
15 = help: more complex types are supported with `#![feature(adt_const_params)]`
17 error[E0015]: cannot call non-const fn `Foo::{constant#0}::Foo::<17_usize>::value` in constants
18 --> $DIR/nested-type.rs:15:5
20 LL | Foo::<17>::value()
23 = note: calls in constants are limited to constant functions, tuple structs and tuple variants
25 error: aborting due to 2 previous errors
27 For more information about this error, try `rustc --explain E0015`.