about summary refs log tree commit diff
path: root/tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs
blob: 97cf3e9d51cd67868d9bfd630bcbdc7d615a1495 (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() {
    //~^ ERROR incorrect function inside `extern` block
        fn g() {}
    }
}