]> git.lizzy.rs Git - rust.git/blob - tests/ui/foreign/issue-74120-lowering-of-ffi-block-bodies.rs
Rollup merge of #107442 - lukas-code:slice-panics, r=cuviper
[rust.git] / tests / 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 }