Rellum Rellum

S0036: duplicate type definition

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

Explanation

A module may define a type name only once. Records, enums, and generic type templates share the same type namespace, so a duplicate name would make later construction, annotation, and pattern checks ambiguous.

Common causes

Canonical fixes

Before:

type Packet = { id: Int }
type Packet = { bytes: [Int] }

After:

type Packet = { id: Int }
type PacketBytes = { bytes: [Int] }

Code example

type Packet = { id: Int }
type Packet = { bytes: [Int] }