summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/extern-main-issue-86110.rs
blob: 83af7a14ccc7a4236e3255e4c6a7edf21605ecdd (plain)
1
2
3
4
5
6
7
// missing and missing2 exist to make sure that the error only happens on a `main` declaration
extern "C" {
    fn missing();
    fn main();
    //~^ the `main` function cannot be declared in an `extern` block
    fn missing2();
}