rust/tests/ui/main-wrong-location.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
600 B
Plaintext
Raw Normal View History

error[E0601]: `main` function not found in crate `main_wrong_location`
--> $DIR/main-wrong-location.rs:5:2
2018-02-23 00:42:32 +00:00
|
LL | }
| ^ the main function must be defined at the crate level (in `$DIR/main-wrong-location.rs`)
|
note: here is a function named `main`
--> $DIR/main-wrong-location.rs:4:5
2018-02-23 00:42:32 +00:00
|
LL | fn main() { }
| ^^^^^^^^^
= note: you have one or more functions named `main` not defined at the crate level
2021-04-08 13:37:38 +00:00
= help: consider moving the `main` function definitions
error: aborting due to 1 previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0601`.