We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6f9a41 commit 41f2e5cCopy full SHA for 41f2e5c
src/librustc_typeck/diagnostics.rs
@@ -126,6 +126,20 @@ construct an instance of the following type using only safe code:
126
```
127
enum Empty {}
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
143
"##
144
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,
0 commit comments