]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0131.md
Rollup merge of #66411 - RalfJung:forget, r=sfackler
[rust.git] / src / librustc_error_codes / error_codes / E0131.md
1 It is not possible to define `main` with generic parameters.
2 When `main` is present, it must take no arguments and return `()`.
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 ```