2018-03-17 13:46:45 +08:00
|
|
|
error: expected item, found `;`
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/issue-49040.rs:1:28
|
2018-03-17 13:46:45 +08:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | #![allow(unused_variables)];
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^
|
|
|
|
|
|
|
|
|
|
|
help: remove this semicolon
|
|
|
|
|
|
|
|
|
|
|
LL - #![allow(unused_variables)];
|
|
|
|
|
LL + #![allow(unused_variables)]
|
|
|
|
|
|
|
2018-03-17 13:46:45 +08:00
|
|
|
|
2019-01-13 17:29:32 -08:00
|
|
|
error[E0601]: `main` function not found in crate `issue_49040`
|
2024-05-19 15:42:12 +02:00
|
|
|
--> $DIR/issue-49040.rs:2:12
|
2019-01-13 17:29:32 -08:00
|
|
|
|
|
2024-05-19 15:42:12 +02:00
|
|
|
LL | fn foo() {}
|
|
|
|
|
| ^ consider adding a `main` function to `$DIR/issue-49040.rs`
|
2019-01-13 17:29:32 -08:00
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2018-03-17 13:46:45 +08:00
|
|
|
|
2019-01-13 17:29:32 -08:00
|
|
|
For more information about this error, try `rustc --explain E0601`.
|