We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d202b59 commit 8341a9aCopy full SHA for 8341a9a
src/librustc_error_codes/error_codes/E0131.md
@@ -1,8 +1,11 @@
1
-It is not possible to define `main` with generic parameters.
2
-When `main` is present, it must take no arguments and return `()`.
+The `main` function was defined with generic parameters.
+
3
Erroneous code example:
4
5
```compile_fail,E0131
6
fn main<T>() { // error: main function is not allowed to have generic parameters
7
}
8
```
9
10
+It is not possible to define the `main` function with generic parameters.
11
+It must not take any arguments.
0 commit comments