diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2020-05-29 15:07:02 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-29 15:07:02 +0900 |
| commit | 6786c7d190a0792cd392fc2d8dde7c7de1e9f9b3 (patch) | |
| tree | 7ce491ac08669504d5e92689352163a4c60850e3 | |
| parent | 6ab9f65a92361e3b5ad77554719add837ff1b0db (diff) | |
| parent | 37bdb3bb3b4323733f8ecdd4925ca314133c6fd0 (diff) | |
| download | rust-6786c7d190a0792cd392fc2d8dde7c7de1e9f9b3.tar.gz rust-6786c7d190a0792cd392fc2d8dde7c7de1e9f9b3.zip | |
Rollup merge of #72495 - GuillaumeGomez:cleanup-e0601, r=Dylan-DPC
Improve E0601 explanation r? @Dylan-DPC
| -rw-r--r-- | src/librustc_error_codes/error_codes/E0601.md | 5 | ||||
| -rw-r--r-- | src/test/ui/json-short.stderr | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/librustc_error_codes/error_codes/E0601.md b/src/librustc_error_codes/error_codes/E0601.md index 8180c5db46f..7194b7971d3 100644 --- a/src/librustc_error_codes/error_codes/E0601.md +++ b/src/librustc_error_codes/error_codes/E0601.md @@ -1,5 +1,6 @@ -No `main` function was found in a binary crate. To fix this error, add a -`main` function. For example: +No `main` function was found in a binary crate. + +To fix this error, add a `main` function: ``` fn main() { diff --git a/src/test/ui/json-short.stderr b/src/test/ui/json-short.stderr index 60c2582b11e..3bd85b083d0 100644 --- a/src/test/ui/json-short.stderr +++ b/src/test/ui/json-short.stderr @@ -1,5 +1,6 @@ -{"message":"`main` function not found in crate `json_short`","code":{"code":"E0601","explanation":"No `main` function was found in a binary crate. To fix this error, add a -`main` function. For example: +{"message":"`main` function not found in crate `json_short`","code":{"code":"E0601","explanation":"No `main` function was found in a binary crate. + +To fix this error, add a `main` function: ``` fn main() { |
