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

14 lines
192 B
Rust

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