]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0136.md
Auto merge of #66396 - smmalis37:pythontest, r=alexcrichton
[rust.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 ```