]>
Commit | Line | Data |
---|---|---|
94222f64 | 1 | warning: `extern` fn uses type `char`, which is not FFI-safe |
a2a8927a | 2 | --> $DIR/naked-functions-ffi.rs:9:28 |
94222f64 XL |
3 | | |
4 | LL | pub extern "C" fn naked(p: char) -> u128 { | |
5 | | ^^^^ not FFI-safe | |
6 | | | |
94222f64 XL |
7 | = help: consider using `u32` or `libc::wchar_t` instead |
8 | = note: the `char` type has no C equivalent | |
2b03887a | 9 | = note: `#[warn(improper_ctypes_definitions)]` on by default |
94222f64 XL |
10 | |
11 | warning: `extern` fn uses type `u128`, which is not FFI-safe | |
a2a8927a | 12 | --> $DIR/naked-functions-ffi.rs:9:37 |
94222f64 XL |
13 | | |
14 | LL | pub extern "C" fn naked(p: char) -> u128 { | |
15 | | ^^^^ not FFI-safe | |
16 | | | |
17 | = note: 128-bit integers don't currently have a known stable ABI | |
18 | ||
19 | warning: 2 warnings emitted | |
20 |