]> git.proxmox.com Git - rustc.git/blob - compiler/rustc_error_codes/src/error_codes/E0136.md
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / compiler / rustc_error_codes / src / error_codes / E0136.md
1 More than one `main` function was found.
2
3 Erroneous code example:
4
5 ```compile_fail,E0136
6 fn main() {
7 // ...
8 }
9
10 // ...
11
12 fn main() { // error!
13 // ...
14 }
15 ```
16
17 A binary can only have one entry point, and by default that entry point is the
18 `main()` function. If there are multiple instances of this function, please
19 rename one of them.