Rellum Rellum

S0041: unknown record or enum type in construction

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

Explanation

Record and enum construction must name a known type of the correct kind. If the name does not resolve, or resolves to the other kind, the compiler cannot determine the payload layout to construct.

Common causes

Canonical fixes

Before:

value = Ponit { x: 0, y: 0 }

After:

value = Point { x: 0, y: 0 }

Code example

value = Ponit { x: 0, y: 0 }