2021-06-09 23:11:35 -04:00
|
|
|
// missing and missing2 exist to make sure that the error only happens on a `main` declaration
|
|
|
|
|
extern "C" {
|
|
|
|
|
fn missing();
|
|
|
|
|
fn main();
|
2025-04-05 19:19:56 +03:00
|
|
|
//~^ ERROR the `main` function cannot be declared in an `extern` block
|
2021-06-09 23:11:35 -04:00
|
|
|
fn missing2();
|
|
|
|
|
}
|