rust/src/test/ui/main-wrong-location.stderr
2018-03-14 12:23:29 -07:00

13 lines
553 B
Plaintext

error[E0601]: `main` function not found in crate `main_wrong_location`
|
= note: the main function must be defined at the crate level but you have one or more functions named 'main' that are not defined at the crate level. Either move the definition or attach the `#[main]` attribute to override this behavior.
note: here is a function named 'main'
--> $DIR/main-wrong-location.rs:14:5
|
LL | fn main() { }
| ^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0601`.