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.
1 parent fdaaf86 commit 84ff2e3Copy full SHA for 84ff2e3
tests/run-make/extern-fn-explicit-align/test.rs
@@ -1,6 +1,6 @@
1
// Issue #80127: Passing structs via FFI should work with explicit alignment.
2
3
-use std::ffi::CString;
+use std::ffi::{CString, c_char};
4
use std::ptr::null_mut;
5
6
#[derive(Clone, Copy, Debug, PartialEq)]
@@ -23,7 +23,7 @@ extern "C" {
23
fn many_args(
24
a: *mut (),
25
b: *mut (),
26
- c: *const i8,
+ c: *const c_char,
27
d: u64,
28
e: bool,
29
f: BoolAndU32,
@@ -33,7 +33,7 @@ extern "C" {
33
j: *mut (),
34
k: *mut (),
35
l: *mut (),
36
- m: *const i8,
+ m: *const c_char,
37
) -> i32;
38
}
39
0 commit comments