1 error: `[u8; _]` is forbidden as the type of a const generic parameter
2 --> $DIR/nested-type.rs:7: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 = note: more complex types are supported with `#[feature(const_generics)]`
17 error[E0015]: calls in constants are limited to constant functions, tuple structs and tuple variants
18 --> $DIR/nested-type.rs:16:5
20 LL | Foo::<17>::value()
23 error[E0080]: evaluation of constant value failed
24 --> $DIR/nested-type.rs:16:5
26 LL | Foo::<17>::value()
27 | ^^^^^^^^^^^^^^^^^^ calling non-const function `Foo::{{constant}}#0::Foo::<17_usize>::value`
29 error: aborting due to 3 previous errors
31 Some errors have detailed explanations: E0015, E0080.
32 For more information about an error, try `rustc --explain E0015`.