]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/main-wrong-location.stderr
Auto merge of #84589 - In-line:zircon-thread-name, r=JohnTitor
[rust.git] / src / test / ui / main-wrong-location.stderr
index e301c2ff09ad75151a4b7024db910a4489ce5854..754ff0f80eb9afc7d8305c810aeb1f07b94eb407 100644 (file)
@@ -3,7 +3,7 @@ error[E0601]: `main` function not found in crate `main_wrong_location`
    |
 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 | | }
@@ -15,7 +15,7 @@ note: here is a function named `main`
 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