]> git.lizzy.rs Git - rust.git/blob - src/test/ui/const-generics/min_const_generics/complex-types.stderr
Merge branch 'master' into feature/incorporate-tracing
[rust.git] / src / test / ui / const-generics / min_const_generics / complex-types.stderr
1 error: using `[u8; 0]` as const generic parameters is forbidden
2   --> $DIR/complex-types.rs:3:21
3    |
4 LL | struct Foo<const N: [u8; 0]>;
5    |                     ^^^^^^^
6    |
7    = note: the only supported types are integers, `bool` and `char`
8    = note: more complex types are supported with `#[feature(const_generics)]`
9
10 error: using `()` as const generic parameters is forbidden
11   --> $DIR/complex-types.rs:6:21
12    |
13 LL | struct Bar<const N: ()>;
14    |                     ^^
15    |
16    = note: the only supported types are integers, `bool` and `char`
17    = note: more complex types are supported with `#[feature(const_generics)]`
18
19 error: using `No` as const generic parameters is forbidden
20   --> $DIR/complex-types.rs:12:21
21    |
22 LL | struct Fez<const N: No>;
23    |                     ^^
24    |
25    = note: the only supported types are integers, `bool` and `char`
26    = note: more complex types are supported with `#[feature(const_generics)]`
27
28 error: using `&'static u8` as const generic parameters is forbidden
29   --> $DIR/complex-types.rs:15:21
30    |
31 LL | struct Faz<const N: &'static u8>;
32    |                     ^^^^^^^^^^^
33    |
34    = note: the only supported types are integers, `bool` and `char`
35    = note: more complex types are supported with `#[feature(const_generics)]`
36
37 error: aborting due to 4 previous errors
38