]>
Commit | Line | Data |
---|---|---|
dfeec247 XL |
1 | The `main` function was defined with generic parameters. |
2 | ||
60c5eb7d XL |
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 | ``` | |
dfeec247 XL |
9 | |
10 | It is not possible to define the `main` function with generic parameters. | |
11 | It must not take any arguments. |