1 // missing and missing2 exist to make sure that the error only happens on a `main` declaration
2 extern "C" {
missing()3 fn missing();
main()4 fn main();
5 //~^ the `main` function cannot be declared in an `extern` block
missing2()6 fn missing2();
7 }
8