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