rust/tests/ui/extern/not-in-block.rs

7 lines
175 B
Rust
Raw Normal View History

#![crate_type = "lib"]
extern fn none_fn(x: bool) -> i32;
//~^ ERROR free function without a body
extern "C" fn c_fn(x: bool) -> i32;
//~^ ERROR free function without a body