Rellum Rellum

S0040: unknown named type

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

Explanation

Type annotations, constructors, and generic instantiations must reference a type that is declared, imported, or built into the language. An unknown type name cannot be resolved to a layout or ownership rule.

Common causes

Canonical fixes

Before:

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

After:

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

Code example

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