]> git.proxmox.com Git - rustc.git/blob - tests/ui/main-wrong-location.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / main-wrong-location.stderr
1 error[E0601]: `main` function not found in crate `main_wrong_location`
2 --> $DIR/main-wrong-location.rs:5:2
3 |
4 LL | }
5 | ^ the main function must be defined at the crate level (in `$DIR/main-wrong-location.rs`)
6 |
7 note: here is a function named `main`
8 --> $DIR/main-wrong-location.rs:4:5
9 |
10 LL | fn main() { }
11 | ^^^^^^^^^
12 = note: you have one or more functions named `main` not defined at the crate level
13 = help: consider moving the `main` function definitions
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0601`.