1 error[E0601]: `main` function not found in crate `main_wrong_location`
2 --> $DIR/main-wrong-location.rs:5:2
5 | ^ the main function must be defined at the crate level (in `$DIR/main-wrong-location.rs`)
7 note: here is a function named `main`
8 --> $DIR/main-wrong-location.rs:4:5
12 = note: you have one or more functions named `main` not defined at the crate level
13 = help: consider moving the `main` function definitions
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0601`.