Skip to content

Commit 6786c7d

Browse files
authored
Rollup merge of #72495 - GuillaumeGomez:cleanup-e0601, r=Dylan-DPC
Improve E0601 explanation r? @Dylan-DPC
2 parents 6ab9f65 + 37bdb3b commit 6786c7d

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/librustc_error_codes/error_codes/E0601.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
No `main` function was found in a binary crate. To fix this error, add a
2-
`main` function. For example:
1+
No `main` function was found in a binary crate.
2+
3+
To fix this error, add a `main` function:
34

45
```
56
fn main() {

src/test/ui/json-short.stderr

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
{"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
2-
`main` function. For example:
1+
{"message":"`main` function not found in crate `json_short`","code":{"code":"E0601","explanation":"No `main` function was found in a binary crate.
2+
3+
To fix this error, add a `main` function:
34

45
```
56
fn main() {

0 commit comments

Comments
 (0)