Rellum Rellum

S0145: extern function declaration cannot have a body

Generated from rellum-diagnostics/src/db.rs.

Explanation

Functions declared inside an extern block are imported declarations. Their implementation lives outside the Rellum module, so the declaration provides only a signature and no = expr body.

Common causes

Canonical fixes

Before:

extern "C" { fn strlen(s: Ptr[RawByte]) : Int = 0 }

After:

extern "C" { fn strlen(s: Ptr[RawByte]) : Int }

Code example

extern "C" { fn strlen(s: Ptr[RawByte]) : Int = 0 }