mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
12 lines
249 B
Rust
12 lines
249 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() {}
|
||
|
}
|
||
|
}
|