rust/tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs
2024-02-16 20:02:50 +00:00

12 lines
250 B
Rust

// 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() {}
}
}