]> git.proxmox.com Git - rustc.git/blob - src/test/ui/const-generics/min_const_generics/complex-types.stderr
Merge branch 'debian/experimental2' into debian/sid
[rustc.git] / src / test / ui / const-generics / min_const_generics / complex-types.stderr
1 error: `[u8; 0]` is forbidden as the type of a const generic parameter
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 = help: more complex types are supported with `#![feature(const_generics)]`
9
10 error: `()` is forbidden as the type of a const generic parameter
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 = help: more complex types are supported with `#![feature(const_generics)]`
18
19 error: `No` is forbidden as the type of a const generic parameter
20 --> $DIR/complex-types.rs:11:21
21 |
22 LL | 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(const_generics)]`
27
28 error: `&'static u8` is forbidden as the type of a const generic parameter
29 --> $DIR/complex-types.rs:14:21
30 |
31 LL | 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(const_generics)]`
36
37 error: `!` is forbidden as the type of a const generic parameter
38 --> $DIR/complex-types.rs:17:21
39 |
40 LL | 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(const_generics)]`
45
46 error: `()` is forbidden as the type of a const generic parameter
47 --> $DIR/complex-types.rs:20:19
48 |
49 LL | 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(const_generics)]`
54
55 error: `()` is forbidden as the type of a const generic parameter
56 --> $DIR/complex-types.rs:23:20
57 |
58 LL | 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(const_generics)]`
63
64 error: aborting due to 7 previous errors
65