]> git.lizzy.rs Git - rust.git/blob - tests/ui/extern/extern-main-issue-86110.rs
Rollup merge of #104672 - Voultapher:unify-sort-modules, r=thomcc
[rust.git] / tests / ui / extern / extern-main-issue-86110.rs
1 // missing and missing2 exist to make sure that the error only happens on a `main` declaration
2 extern "C" {
3     fn missing();
4     fn main();
5     //~^ the `main` function cannot be declared in an `extern` block
6     fn missing2();
7 }