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 @@ -136,6 +136,20 @@ construct an instance of the following type using only safe code:
136136```
137137enum Empty {}
138138```
139+ "## ,
140+
141+ E0131 : r##"
142+ It is not possible to define `main` with type parameters, or even with function
143+ parameters. When `main` is present, it must take no arguments and return `()`.
144+ "## ,
145+
146+ E0132 : r##"
147+ It is not possible to declare type parameters on a function that has the `start`
148+ attribute. Such a function must have the following type signature:
149+
150+ ```
151+ fn(isize, *const *const u8) -> isize
152+ ```
139153"##
140154
141155}
@@ -205,8 +219,6 @@ register_diagnostics! {
205219 E0128 ,
206220 E0129 ,
207221 E0130 ,
208- E0131 ,
209- E0132 ,
210222 E0141 ,
211223 E0159 ,
212224 E0163 ,
You can’t perform that action at this time.
0 commit comments