]> git.lizzy.rs Git - rust.git/blob - src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs
Merge commit '0e87918536b9833bbc6c683d1f9d51ee2bf03ef1' into clippyup
[rust.git] / src / test / ui / foreign / issue-74120-lowering-of-ffi-block-bodies.rs
1 // Previously this ICE'd because `fn g()` would be lowered, but the block associated with `fn f()`
2 // wasn't.
3
4 // compile-flags: --crate-type=lib
5
6 extern "C" {
7     fn f() {
8     //~^ incorrect function inside `extern` block
9         fn g() {}
10     }
11 }