1 error[E0601]: `main` function not found in crate `main_wrong_location`
2 --> $DIR/main-wrong-location.rs:1:1
6 LL | | // An inferred main entry point (that doesn't use #[main])
7 LL | | // must appear at the top of the crate
10 | |_^ the main function must be defined at the crate level (in `$DIR/main-wrong-location.rs`)
12 note: here is a function named `main`
13 --> $DIR/main-wrong-location.rs:5:5
17 = note: you have one or more functions named `main` not defined at the crate level
18 = help: either move the `main` function definitions or attach the `#[main]` attribute to one of them
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0601`.