rust/tests/ui/unsafe/foreign-unsafe-fn-called.rs
2024-01-05 10:00:59 +00:00

11 lines
154 B
Rust

mod test {
extern "C" {
pub fn free();
}
}
fn main() {
test::free();
//~^ ERROR call to unsafe function `test::free` is unsafe
}