diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-01-03 17:56:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-03 17:56:32 +0900 |
| commit | 39a68a130ada3e705216bc96bf482e80d827d193 (patch) | |
| tree | 92985c5def23a577d2b59104607b2b5fa9d04ad5 /src/librustc_error_codes/error_codes | |
| parent | b0649c0c5f11a2b902fdeda145e4f86015f5844a (diff) | |
| parent | 8341a9a8f770ad2cf4390446c5da1e590acfc14e (diff) | |
| download | rust-39a68a130ada3e705216bc96bf482e80d827d193.tar.gz rust-39a68a130ada3e705216bc96bf482e80d827d193.zip | |
Rollup merge of #67816 - GuillaumeGomez:clean-up-err-codes, r=Dylan-DPC
Clean up err codes r? @Dylan-DPC
Diffstat (limited to 'src/librustc_error_codes/error_codes')
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0130.md | 4 | ||||
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0131.md | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0130.md b/src/librustc_error_codes/error_codes/E0130.md index 5273f3ad14f..539049edb33 100644 --- a/src/librustc_error_codes/error_codes/E0130.md +++ b/src/librustc_error_codes/error_codes/E0130.md @@ -1,4 +1,4 @@ -You declared a pattern as an argument in a foreign function declaration. +A pattern was declared as an argument in a foreign function declaration. Erroneous code example: @@ -9,7 +9,7 @@ extern { } ``` -Please replace the pattern argument with a regular one. Example: +To fix this error, replace the pattern argument with a regular one. Example: ``` struct SomeStruct { diff --git a/src/librustc_error_codes/error_codes/E0131.md b/src/librustc_error_codes/error_codes/E0131.md index a70a02925b0..ed798d4f881 100644 --- a/src/librustc_error_codes/error_codes/E0131.md +++ b/src/librustc_error_codes/error_codes/E0131.md @@ -1,8 +1,11 @@ -It is not possible to define `main` with generic parameters. -When `main` is present, it must take no arguments and return `()`. +The `main` function was defined with generic parameters. + Erroneous code example: ```compile_fail,E0131 fn main<T>() { // error: main function is not allowed to have generic parameters } ``` + +It is not possible to define the `main` function with generic parameters. +It must not take any arguments. |
