]> git.lizzy.rs Git - rust.git/blob - tests/ui/const-generics/nested-type.min.stderr
Rollup merge of #105526 - Xiretza:iter-from-generator-derive, r=scottmcm
[rust.git] / tests / ui / const-generics / nested-type.min.stderr
1 error: `[u8; _]` is forbidden as the type of a const generic parameter
2   --> $DIR/nested-type.rs:6:21
3    |
4 LL |   struct Foo<const N: [u8; {
5    |  _____________________^
6 LL | |     struct Foo<const N: usize>;
7 LL | |
8 LL | |     impl<const N: usize> Foo<N> {
9 ...  |
10 LL | |
11 LL | | }]>;
12    | |__^
13    |
14    = note: the only supported types are integers, `bool` and `char`
15    = help: more complex types are supported with `#![feature(adt_const_params)]`
16
17 error: aborting due to previous error
18