@@ -4,15 +4,15 @@ error: `&'static mut ()` is forbidden as the type of a const generic parameter
4
4
LL | fn uwu_0<const N: &'static mut ()>() {}
5
5
| ^^^^^^^^^^^^^^^
6
6
|
7
- = note: the only supported types are integers, `bool` and `char`
7
+ = note: the only supported types are integers, `bool`, and `char`
8
8
9
9
error: `&'static u32` is forbidden as the type of a const generic parameter
10
10
--> $DIR/suggest_feature_only_when_possible.rs:15:19
11
11
|
12
12
LL | fn owo_0<const N: &'static u32>() {}
13
13
| ^^^^^^^^^^^^
14
14
|
15
- = note: the only supported types are integers, `bool` and `char`
15
+ = note: the only supported types are integers, `bool`, and `char`
16
16
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
17
17
|
18
18
LL + #![feature(adt_const_params)]
@@ -28,7 +28,7 @@ error: `Meow` is forbidden as the type of a const generic parameter
28
28
LL | fn meow_0<const N: Meow>() {}
29
29
| ^^^^
30
30
|
31
- = note: the only supported types are integers, `bool` and `char`
31
+ = note: the only supported types are integers, `bool`, and `char`
32
32
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
33
33
|
34
34
LL + #![feature(adt_const_params)]
@@ -40,7 +40,7 @@ error: `&'static Meow` is forbidden as the type of a const generic parameter
40
40
LL | fn meow_1<const N: &'static Meow>() {}
41
41
| ^^^^^^^^^^^^^
42
42
|
43
- = note: the only supported types are integers, `bool` and `char`
43
+ = note: the only supported types are integers, `bool`, and `char`
44
44
help: add `#![feature(adt_const_params)]` to the crate attributes to enable more complex and user defined types
45
45
|
46
46
LL + #![feature(adt_const_params)]
@@ -56,39 +56,39 @@ error: `[Meow; 100]` is forbidden as the type of a const generic parameter
56
56
LL | fn meow_2<const N: [Meow; 100]>() {}
57
57
| ^^^^^^^^^^^
58
58
|
59
- = note: the only supported types are integers, `bool` and `char`
59
+ = note: the only supported types are integers, `bool`, and `char`
60
60
61
61
error: `(Meow, u8)` is forbidden as the type of a const generic parameter
62
62
--> $DIR/suggest_feature_only_when_possible.rs:29:20
63
63
|
64
64
LL | fn meow_3<const N: (Meow, u8)>() {}
65
65
| ^^^^^^^^^^
66
66
|
67
- = note: the only supported types are integers, `bool` and `char`
67
+ = note: the only supported types are integers, `bool`, and `char`
68
68
69
69
error: `(Meow, String)` is forbidden as the type of a const generic parameter
70
70
--> $DIR/suggest_feature_only_when_possible.rs:34:20
71
71
|
72
72
LL | fn meow_4<const N: (Meow, String)>() {}
73
73
| ^^^^^^^^^^^^^^
74
74
|
75
- = note: the only supported types are integers, `bool` and `char`
75
+ = note: the only supported types are integers, `bool`, and `char`
76
76
77
77
error: `String` is forbidden as the type of a const generic parameter
78
78
--> $DIR/suggest_feature_only_when_possible.rs:38:19
79
79
|
80
80
LL | fn nya_0<const N: String>() {}
81
81
| ^^^^^^
82
82
|
83
- = note: the only supported types are integers, `bool` and `char`
83
+ = note: the only supported types are integers, `bool`, and `char`
84
84
85
85
error: `Vec<u32>` is forbidden as the type of a const generic parameter
86
86
--> $DIR/suggest_feature_only_when_possible.rs:40:19
87
87
|
88
88
LL | fn nya_1<const N: Vec<u32>>() {}
89
89
| ^^^^^^^^
90
90
|
91
- = note: the only supported types are integers, `bool` and `char`
91
+ = note: the only supported types are integers, `bool`, and `char`
92
92
93
93
error: aborting due to 9 previous errors
94
94
0 commit comments