1 error: `[u8; 0]` is forbidden as the type of a const generic parameter
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 = help: more complex types are supported with `#![feature(const_generics)]`
10 error: `()` is forbidden as the type of a const generic parameter
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 = help: more complex types are supported with `#![feature(const_generics)]`
19 error: `No` is forbidden as the type of a const generic parameter
20 --> $DIR/complex-types.rs:11:21
22 LL | struct Fez<const N: No>;
25 = note: the only supported types are integers, `bool` and `char`
26 = help: more complex types are supported with `#![feature(const_generics)]`
28 error: `&'static u8` is forbidden as the type of a const generic parameter
29 --> $DIR/complex-types.rs:14:21
31 LL | struct Faz<const N: &'static u8>;
34 = note: the only supported types are integers, `bool` and `char`
35 = help: more complex types are supported with `#![feature(const_generics)]`
37 error: `!` is forbidden as the type of a const generic parameter
38 --> $DIR/complex-types.rs:17:21
40 LL | struct Fiz<const N: !>;
43 = note: the only supported types are integers, `bool` and `char`
44 = help: more complex types are supported with `#![feature(const_generics)]`
46 error: `()` is forbidden as the type of a const generic parameter
47 --> $DIR/complex-types.rs:20:19
49 LL | enum Goo<const N: ()> { A, B }
52 = note: the only supported types are integers, `bool` and `char`
53 = help: more complex types are supported with `#![feature(const_generics)]`
55 error: `()` is forbidden as the type of a const generic parameter
56 --> $DIR/complex-types.rs:23:20
58 LL | union Boo<const N: ()> { a: () }
61 = note: the only supported types are integers, `bool` and `char`
62 = help: more complex types are supported with `#![feature(const_generics)]`
64 error: aborting due to 7 previous errors