File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -126,6 +126,20 @@ construct an instance of the following type using only safe code:
126
126
```
127
127
enum Empty {}
128
128
```
129
+ "## ,
130
+
131
+ E0131 : r##"
132
+ It is not possible to define `main` with type parameters, or even with function
133
+ parameters. When `main` is present, it must take no arguments and return `()`.
134
+ "## ,
135
+
136
+ E0132 : r##"
137
+ It is not possible to declare type parameters on a function that has the `start`
138
+ attribute. Such a function must have the following type signature:
139
+
140
+ ```
141
+ fn(isize, *const *const u8) -> isize
142
+ ```
129
143
"##
130
144
131
145
}
@@ -197,8 +211,6 @@ register_diagnostics! {
197
211
E0128 ,
198
212
E0129 ,
199
213
E0130 ,
200
- E0131 ,
201
- E0132 ,
202
214
E0141 ,
203
215
E0159 ,
204
216
E0163 ,
You can’t perform that action at this time.
0 commit comments