rust/tests/compile-fail/unsupported_foreign_function.rs

10 lines
159 B
Rust
Raw Normal View History

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