Rellum Rellum

S0048: record or enum pattern requires named scrutinee

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

Explanation

Record and enum variant patterns destructure named record or enum values. A scalar, tuple, array, Option, Result, or value of the wrong named kind does not have the declared payload layout the pattern expects.

Common causes

Canonical fixes

Before:

match count
    Point { x } => x

After:

match point
    Point { x } => x

Code example

match count
    Point { x } => x