Skip to content

Commit

Permalink
diagnostics: Remove main return type errors from E0580
Browse files Browse the repository at this point in the history
  • Loading branch information
tmandry committed Mar 20, 2018
1 parent be29e52 commit 5ccf3ff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:
```
Expand Down

0 comments on commit 5ccf3ff

Please sign in to comment.