We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be29e52 commit 5ccf3ffCopy full SHA for 5ccf3ff
src/librustc/diagnostics.rs
@@ -1764,12 +1764,12 @@ The `main` function was incorrectly declared.
1764
Erroneous code example:
1765
1766
```compile_fail,E0580
1767
-fn main() -> i32 { // error: main function has wrong type
1768
- 0
+fn main(x: i32) { // error: main function has wrong type
+ println!("{}", x);
1769
}
1770
```
1771
1772
-The `main` function prototype should never take arguments or return type.
+The `main` function prototype should never take arguments.
1773
Example:
1774
1775
0 commit comments