We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b38dc83 + 9d777d8 commit bcb87a7Copy full SHA for bcb87a7
tests/compile-fail/check_arg_abi.rs
@@ -0,0 +1,9 @@
1
+fn main() {
2
+ extern "Rust" {
3
+ fn malloc(size: usize) -> *mut std::ffi::c_void;
4
+ }
5
+
6
+ unsafe {
7
+ let _ = malloc(0); //~ ERROR calling a function with ABI C using caller ABI Rust
8
+ };
9
+}
0 commit comments