rust/tests/fail/unsupported_foreign_function.rs

10 lines
160 B
Rust
Raw Normal View History

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