]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_error_codes/src/error_codes/E0131.md
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / compiler / rustc_error_codes / src / error_codes / E0131.md
1 The `main` function was defined with generic parameters.
2
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.