1error: `[u8; 0]` is forbidden as the type of a const generic parameter 2 --> $DIR/complex-types.rs:3:21 3 | 4LL | struct Foo<const N: [u8; 0]>; 5 | ^^^^^^^ 6 | 7 = note: the only supported types are integers, `bool` and `char` 8 = help: more complex types are supported with `#![feature(adt_const_params)]` 9 10error: `()` is forbidden as the type of a const generic parameter 11 --> $DIR/complex-types.rs:6:21 12 | 13LL | struct Bar<const N: ()>; 14 | ^^ 15 | 16 = note: the only supported types are integers, `bool` and `char` 17 = help: more complex types are supported with `#![feature(adt_const_params)]` 18 19error: `No` is forbidden as the type of a const generic parameter 20 --> $DIR/complex-types.rs:11:21 21 | 22LL | struct Fez<const N: No>; 23 | ^^ 24 | 25 = note: the only supported types are integers, `bool` and `char` 26 = help: more complex types are supported with `#![feature(adt_const_params)]` 27 28error: `&'static u8` is forbidden as the type of a const generic parameter 29 --> $DIR/complex-types.rs:14:21 30 | 31LL | struct Faz<const N: &'static u8>; 32 | ^^^^^^^^^^^ 33 | 34 = note: the only supported types are integers, `bool` and `char` 35 = help: more complex types are supported with `#![feature(adt_const_params)]` 36 37error: `!` is forbidden as the type of a const generic parameter 38 --> $DIR/complex-types.rs:17:21 39 | 40LL | struct Fiz<const N: !>; 41 | ^ 42 | 43 = note: the only supported types are integers, `bool` and `char` 44 = help: more complex types are supported with `#![feature(adt_const_params)]` 45 46error: `()` is forbidden as the type of a const generic parameter 47 --> $DIR/complex-types.rs:20:19 48 | 49LL | enum Goo<const N: ()> { A, B } 50 | ^^ 51 | 52 = note: the only supported types are integers, `bool` and `char` 53 = help: more complex types are supported with `#![feature(adt_const_params)]` 54 55error: `()` is forbidden as the type of a const generic parameter 56 --> $DIR/complex-types.rs:23:20 57 | 58LL | union Boo<const N: ()> { a: () } 59 | ^^ 60 | 61 = note: the only supported types are integers, `bool` and `char` 62 = help: more complex types are supported with `#![feature(adt_const_params)]` 63 64error: aborting due to 7 previous errors 65 66