summaryrefslogtreecommitdiffstats
path: root/src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs
blob: a84065e02186855cbb0f6e4241eb0576638b005f (plain)
1
2
3
4
5
6
7
8
9
10
11
// Previously this ICE'd because `fn g()` would be lowered, but the block associated with `fn f()`
// wasn't.

// compile-flags: --crate-type=lib

extern "C" {
    fn f() {
    //~^ incorrect function inside `extern` block
        fn g() {}
    }
}