rust
rust copied to clipboard
Wrong diagnostic: `main` function not found in crate
Tested on nightly and stable.
;
fn main() { }
error: expected item, found `;`
--> src/main.rs:1:1
|
1 | ;
| ^ help: remove this semicolon
error[E0601]: `main` function not found in crate `tests`
--> src/main.rs:1:2
|
1 | ;
| ^ consider adding a `main` function to `src/main.rs`
For more information about this error, try `rustc --explain E0601`.
error: could not compile `tests` (bin "tests") due to 2 previous errors
The second diagnostic is strange.
@rustbot label +A-diagnostics S-has-mvce
@rustbot claim
@saethlin any idea why rustbot ignored me?
Just guessing, the missing + for S-has-mcve maybe?
Oops, this should'nt've been closed.