blob: 15cf09a18cbdeec42f8edf9d65cd38c3ea4f7701 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#### Note: this error code is no longer emitted by the compiler.
More than one `main` function was found.
Erroneous code example:
```compile_fail
fn main() {
// ...
}
// ...
fn main() { // error!
// ...
}
```
A binary can only have one entry point, and by default that entry point is the
`main()` function. If there are multiple instances of this function, please
rename one of them.
|