]>
Commit | Line | Data |
---|---|---|
f9f354fc XL |
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: | |
416331ca XL |
4 | |
5 | ``` | |
6 | fn main() { | |
7 | // Your program will start here. | |
8 | println!(\"Hello world!\"); | |
9 | } | |
10 | ``` | |
11 | ||
74b04a01 XL |
12 | If you don't know the basics of Rust, you can look at the |
13 | [Rust Book][rust-book] to get started. | |
14 | ||
15 | [rust-book]: https://doc.rust-lang.org/book/ | |
dfeec247 | 16 | "},"level":"error","spans":[{"file_name":"$DIR/json-short.rs","byte_start":62,"byte_end":62,"line_start":1,"line_end":1,"column_start":63,"column_end":63,"is_primary":true,"text":[{"text":"// compile-flags: --json=diagnostic-short --error-format=json","highlight_start":63,"highlight_end":63}],"label":"consider adding a `main` function to `$DIR/json-short.rs`","suggested_replacement":null,"suggestion_applicability":null,"expansion":null}],"children":[],"rendered":"$DIR/json-short.rs:1:63: error[E0601]: `main` function not found in crate `json_short` |
416331ca XL |
17 | "} |
18 | {"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error | |
19 | "} |