error: `[u8; 0]` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:3:21 | LL | struct Foo; | ^^^^^^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `()` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:6:21 | LL | struct Bar; | ^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `No` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:11:21 | LL | struct Fez; | ^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `&'static u8` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:14:21 | LL | struct Faz; | ^^^^^^^^^^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `!` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:17:21 | LL | struct Fiz; | ^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `()` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:20:19 | LL | enum Goo { A, B } | ^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: `()` is forbidden as the type of a const generic parameter --> $DIR/complex-types.rs:23:20 | LL | union Boo { a: () } | ^^ | = note: the only supported types are integers, `bool` and `char` = help: more complex types are supported with `#![feature(const_generics)]` error: aborting due to 7 previous errors