1 error: using `[u8; 0]` as const generic parameters is forbidden
2 --> $DIR/complex-types.rs:3:21
4 LL | struct Foo<const N: [u8; 0]>;
7 = note: the only supported types are integers, `bool` and `char`
8 = note: more complex types are supported with `#[feature(const_generics)]`
10 error: using `()` as const generic parameters is forbidden
11 --> $DIR/complex-types.rs:6:21
13 LL | struct Bar<const N: ()>;
16 = note: the only supported types are integers, `bool` and `char`
17 = note: more complex types are supported with `#[feature(const_generics)]`
19 error: using `No` as const generic parameters is forbidden
20 --> $DIR/complex-types.rs:12:21
22 LL | struct Fez<const N: No>;
25 = note: the only supported types are integers, `bool` and `char`
26 = note: more complex types are supported with `#[feature(const_generics)]`
28 error: using `&'static u8` as const generic parameters is forbidden
29 --> $DIR/complex-types.rs:15:21
31 LL | struct Faz<const N: &'static u8>;
34 = note: the only supported types are integers, `bool` and `char`
35 = note: more complex types are supported with `#[feature(const_generics)]`
37 error: aborting due to 4 previous errors