rust/tests/fail/function_calls/exported_symbol_wrong_arguments.rs
2022-06-01 10:53:38 -04:00

10 lines
178 B
Rust

#[no_mangle]
fn foo() {}
fn main() {
extern "Rust" {
fn foo(_: i32);
}
unsafe { foo(1) } //~ ERROR calling a function with more arguments than it expected
}