]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm/naked-functions-ffi.stderr
Rollup merge of #99787 - aDotInTheVoid:rdj-dyn, r=camelid,notriddle,GuillaumeGomez
[rust.git] / src / test / ui / asm / naked-functions-ffi.stderr
1 warning: `extern` fn uses type `char`, which is not FFI-safe
2   --> $DIR/naked-functions-ffi.rs:9:28
3    |
4 LL | pub extern "C" fn naked(p: char) -> u128 {
5    |                            ^^^^ not FFI-safe
6    |
7    = note: `#[warn(improper_ctypes_definitions)]` on by default
8    = help: consider using `u32` or `libc::wchar_t` instead
9    = note: the `char` type has no C equivalent
10
11 warning: `extern` fn uses type `u128`, which is not FFI-safe
12   --> $DIR/naked-functions-ffi.rs:9:37
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