]> git.proxmox.com Git - rustc.git/blob - src/librustc_error_codes/error_codes/E0136.md
New upstream version 1.41.1+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0136.md
1 A binary can only have one entry point, and by default that entry point is the
2 function `main()`. If there are multiple such functions, please rename one.
3
4 Erroneous code example:
5
6 ```compile_fail,E0136
7 fn main() {
8 // ...
9 }
10
11 // ...
12
13 fn main() { // error!
14 // ...
15 }
16 ```