b7f20d06ea
Unfortunately, the diagnotic machinery does not cope well with an empty span which can happen if the crate is empty, in which case we merely set a spanless note.
18 lines
505 B
Plaintext
18 lines
505 B
Plaintext
error: expected item, found `;`
|
|
--> $DIR/issue-49040.rs:1:28
|
|
|
|
|
LL | #![allow(unused_variables)];
|
|
| ^ help: remove this semicolon
|
|
|
|
error[E0601]: `main` function not found in crate `issue_49040`
|
|
--> $DIR/issue-49040.rs:1:1
|
|
|
|
|
LL | / #![allow(unused_variables)];
|
|
LL | |
|
|
LL | | fn foo() {}
|
|
| |__^ consider adding a `main` function to `$DIR/issue-49040.rs`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0601`.
|