]> git.proxmox.com Git - rustc.git/blame - src/test/ui/json-short.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / json-short.stderr
CommitLineData
60c5eb7d 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
416331ca
XL
2`main` function. For example:
3
4```
5fn main() {
6 // Your program will start here.
7 println!(\"Hello world!\");
8}
9```
10
11If you don't know the basics of Rust, you can go look to the Rust Book to get
12started: https://doc.rust-lang.org/book/
e1599b0c 13"},"level":"error","spans":[{"file_name":"$DIR/json-short.rs","byte_start":76,"byte_end":76,"line_start":2,"line_end":2,"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:2:63: error[E0601]: `main` function not found in crate `json_short`
416331ca
XL
14"}
15{"message":"aborting due to previous error","code":null,"level":"error","spans":[],"children":[],"rendered":"error: aborting due to previous error
16"}