compiler/rustc_error_codes/src/error_codes/E0131.md MARKDOWN 12 lines View on github.com → Search inside
1The `main` function was defined with generic parameters.23Erroneous code example:45```compile_fail,E01316fn main<T>() { // error: main function is not allowed to have generic parameters7}8```910It is not possible to define the `main` function with generic parameters.11It must not take any arguments.

Findings

✓ No findings reported for this file.

Get this view in your editor

Same data, no extra tab — call code_get_file + code_get_findings over MCP from Claude/Cursor/Copilot.