|
LL | / mod m {
LL | |
-LL | | // An inferred main entry point (that doesn't use #[main])
+LL | | // An inferred main entry point
LL | | // must appear at the top of the crate
LL | | fn main() { }
LL | | }
LL | fn main() { }
| ^^^^^^^^^^^^^
= note: you have one or more functions named `main` not defined at the crate level
- = help: either move the `main` function definitions or attach the `#[main]` attribute to one of them
+ = help: consider moving the `main` function definitions
error: aborting due to previous error