summaryrefslogtreecommitdiffstats
path: root/tests/ui/extern/extern-ffi-fn-with-body.rs
blob: ef234e8afd8ca76fb32a6971f18c28539c681a3e (plain)
1
2
3
4
5
6
7
8
9
10
11
extern "C" {
    fn foo() -> i32 { //~ ERROR incorrect function inside `extern` block
        return 0;
    }
}

extern "C" fn bar() -> i32 {
    return 0;
}

fn main() {}