You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2023. It is now read-only.
"message": "`main` function not found in crate `empty`",
3
+
"code": {
4
+
"code": "E0601",
5
+
"explanation": "No `main` function was found in a binary crate. To fix this error, add a\n`main` function. For example:\n\n```\nfn main() {\n // Your program will start here.\n println!(\"Hello world!\");\n}\n```\n\nIf you don't know the basics of Rust, you can go look to the Rust Book to get\nstarted: https://doc.rust-lang.org/book/\n"
6
+
},
7
+
"level": "error",
8
+
"spans": [
9
+
{
10
+
"file_name": "empty.rs",
11
+
"byte_start": 0,
12
+
"byte_end": 0,
13
+
"line_start": 0,
14
+
"line_end": 0,
15
+
"column_start": 1,
16
+
"column_end": 1,
17
+
"is_primary": true,
18
+
"text": [
19
+
{
20
+
"text": "",
21
+
"highlight_start": 1,
22
+
"highlight_end": 1
23
+
}
24
+
],
25
+
"label": null,
26
+
"suggested_replacement": null,
27
+
"suggestion_applicability": null,
28
+
"expansion": null
29
+
}
30
+
],
31
+
"children": [
32
+
{
33
+
"message": "consider adding a `main` function to `empty.rs`",
34
+
"code": null,
35
+
"level": "note",
36
+
"spans": [],
37
+
"children": [],
38
+
"rendered": null
39
+
}
40
+
],
41
+
"rendered": "error[E0601]: `main` function not found in crate `empty`\n |\n = note: consider adding a `main` function to `empty.rs`\n\n"
"message": "`main` function not found in crate `no_main`",
3
+
"code": {
4
+
"code": "E0601",
5
+
"explanation": "No `main` function was found in a binary crate. To fix this error, add a\n`main` function. For example:\n\n```\nfn main() {\n // Your program will start here.\n println!(\"Hello world!\");\n}\n```\n\nIf you don't know the basics of Rust, you can go look to the Rust Book to get\nstarted: https://doc.rust-lang.org/book/\n"
6
+
},
7
+
"level": "error",
8
+
"spans": [
9
+
{
10
+
"file_name": "no_main.rs",
11
+
"byte_start": 26,
12
+
"byte_end": 26,
13
+
"line_start": 1,
14
+
"line_end": 1,
15
+
"column_start": 27,
16
+
"column_end": 27,
17
+
"is_primary": true,
18
+
"text": [
19
+
{
20
+
"text": "// This file has no main.",
21
+
"highlight_start": 27,
22
+
"highlight_end": 27
23
+
}
24
+
],
25
+
"label": "consider adding a `main` function to `no_main.rs`",
26
+
"suggested_replacement": null,
27
+
"suggestion_applicability": null,
28
+
"expansion": null
29
+
}
30
+
],
31
+
"children": [],
32
+
"rendered": "error[E0601]: `main` function not found in crate `no_main`\n --> no_main.rs:1:27\n |\n1 | // This file has no main.\n | ^ consider adding a `main` function to `no_main.rs`\n\n"
0 commit comments