]> git.proxmox.com Git - rustc.git/blame - src/librustc_error_codes/error_codes/E0136.md
New upstream version 1.47.0+dfsg1
[rustc.git] / src / librustc_error_codes / error_codes / E0136.md
CommitLineData
dfeec247 1More than one `main` function was found.
60c5eb7d
XL
2
3Erroneous code example:
4
5```compile_fail,E0136
6fn main() {
7 // ...
8}
9
10// ...
11
12fn main() { // error!
13 // ...
14}
15```
dfeec247
XL
16
17A 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
19rename one of them.