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