Rellum Rellum

S0139: invalid repr attribute argument

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

Explanation

#[repr] controls the representation used for a type layout. In this milestone, Rellum only accepts #[repr(C)]; other representation forms such as packed, align(N), and transparent are not supported yet.

Common causes

Canonical fixes

Before:

#[repr(packed)]
type Header = { tag: Int }

After:

#[repr(C)]
type Header = { tag: Int }

Code example

#[repr(packed)]
type Header = { tag: Int }