Skip to content

Commit 39a68a1

Browse files
authored
Rollup merge of #67816 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC
Clean up err codes r? @Dylan-DPC
2 parents b0649c0 + 8341a9a commit 39a68a1

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/librustc_error_codes/error_codes/E0130.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
You declared a pattern as an argument in a foreign function declaration.
1+
A pattern was declared as an argument in a foreign function declaration.
22

33
Erroneous code example:
44

@@ -9,7 +9,7 @@ extern {
99
}
1010
```
1111

12-
Please replace the pattern argument with a regular one. Example:
12+
To fix this error, replace the pattern argument with a regular one. Example:
1313

1414
```
1515
struct SomeStruct {
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1-
It is not possible to define `main` with generic parameters.
2-
When `main` is present, it must take no arguments and return `()`.
1+
The `main` function was defined with generic parameters.
2+
33
Erroneous code example:
44

55
```compile_fail,E0131
66
fn main<T>() { // error: main function is not allowed to have generic parameters
77
}
88
```
9+
10+
It is not possible to define the `main` function with generic parameters.
11+
It must not take any arguments.

0 commit comments

Comments
 (0)