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

13 lines
170 B
Rust

// -*- rust -*-
// error-pattern: unsafe functions can only be called
native "c-stack-cdecl" mod test {
unsafe fn free();
}
fn main() {
let x = test::free;
}