Skip to content

Commit 41f2e5c

Browse files
committed
Add long diagnostic for E0131, E0132
1 parent b6f9a41 commit 41f2e5c

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

src/librustc_typeck/diagnostics.rs

+14-2
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,20 @@ construct an instance of the following type using only safe code:
126126
```
127127
enum Empty {}
128128
```
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+
```
129143
"##
130144

131145
}
@@ -197,8 +211,6 @@ register_diagnostics! {
197211
E0128,
198212
E0129,
199213
E0130,
200-
E0131,
201-
E0132,
202214
E0141,
203215
E0159,
204216
E0163,

0 commit comments

Comments
 (0)