rust/tests/compile-fail/unsupported_foreign_function.rs

10 lines
159 B
Rust

fn main() {
extern "Rust" {
fn foo();
}
unsafe {
foo(); //~ ERROR unsupported operation: can't call foreign function: foo
}
}