Rellum Rellum

S0050: pattern type does not match scrutinee

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

Explanation

Record and enum patterns name the concrete type they destructure. The pattern type must be the same named type as the match scrutinee so field positions, variant tags, and payload layouts are unambiguous.

Common causes

Canonical fixes

Before:

match point
    Size { width } => width

After:

match point
    Point { x } => x

Code example

match point
    Size { width } => width