fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
598 B17 linesraw
1error[E0601]: `main` function not found in crate `main_wrong_location`
2  --> $DIR/main-wrong-location.rs:5:2
3   |
4LL | }
5   |  ^ the main function must be defined at the crate level (in `$DIR/main-wrong-location.rs`)
6   |
7note: here is a function named `main`
8  --> $DIR/main-wrong-location.rs:4:5
9   |
10LL |     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
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0601`.