]>
Commit | Line | Data |
---|---|---|
dfeec247 | 1 | More than one `main` function was found. |
60c5eb7d XL |
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 | ``` | |
dfeec247 XL |
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. |