E0055

E0055#

Unannotated FFI param type.

The FFI parameter of pointer type should be annotated with either #borrow or
#owned, the default calling convention is currently #owned and it will be
changed in the future. For the detailed meaning, checkout FFI documentation.

错误示例#

///|
extern "c" fn _f(p : Bytes) -> Unit = "free"

建议#

Add the missing #borrow or #owned annotation.

///|
#borrow(p)
extern "c" fn _f(p : Bytes) -> Unit = "free"