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
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: consider moving the `main` function definitions
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0601`.