rust/src/test/compile-fail/foreign-unsafe-fn-called.rs

13 lines
185 B
Rust

// -*- rust -*-
#[abi = "cdecl"]
extern mod test {
unsafe fn free();
}
fn main() {
test::free();
//~^ ERROR access to unsafe function requires unsafe function or block
}