rust/tests/fail/unsupported_foreign_function.rs
2022-07-11 11:48:56 +00:00

10 lines
160 B
Rust

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