mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 13:40:15 +03:00
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
|
|
}
|
|
}
|