]> git.lizzy.rs Git - rust.git/blob - src/test/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs
Merge commit '1411a98352ba6bee8ba3b0131c9243e5db1e6a2e' into sync_cg_clif-2021-12-31
[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 }