diagnostics: Remove main return type errors from E0580

This commit is contained in:
Tyler Mandry 2018-03-20 00:06:46 -05:00
parent be29e52c5a
commit 5ccf3ffab2

View file

@ -1764,12 +1764,12 @@ The `main` function was incorrectly declared.
Erroneous code example:
```compile_fail,E0580
fn main() -> i32 { // error: main function has wrong type
0
fn main(x: i32) { // error: main function has wrong type
println!("{}", x);
}
```
The `main` function prototype should never take arguments or return type.
The `main` function prototype should never take arguments.
Example:
```