rust/tests/extern-so/fail/function_not_in_so.rs

13 lines
183 B
Rust

//@only-target-linux
//@only-on-host
extern "C" {
fn foo();
}
fn main() {
unsafe {
foo(); //~ ERROR: unsupported operation: can't call foreign function: foo
}
}