]> git.lizzy.rs Git - rust.git/blob - src/librustc_error_codes/error_codes/E0601.md
Rollup merge of #67875 - dtolnay:hidden, r=GuillaumeGomez
[rust.git] / src / librustc_error_codes / error_codes / E0601.md
1 No `main` function was found in a binary crate. To fix this error, add a
2 `main` function. For example:
3
4 ```
5 fn main() {
6     // Your program will start here.
7     println!("Hello world!");
8 }
9 ```
10
11 If you don't know the basics of Rust, you can go look to the Rust Book to get
12 started: https://doc.rust-lang.org/book/