compiler/rustc_error_codes/src/error_codes/E0136.md MARKDOWN 22 lines View on github.com → Search inside
1#### Note: this error code is no longer emitted by the compiler.23More than one `main` function was found.45Erroneous code example:67```compile_fail8fn main() {9    // ...10}1112// ...1314fn main() { // error!15    // ...16}17```1819A binary can only have one entry point, and by default that entry point is the20`main()` function. If there are multiple instances of this function, please21rename one of them.

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.