Rellum Rellum

S0090: ? operator is only valid inside pure functions

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

Explanation

The ? operator propagates errors by returning early from the enclosing function. Effect bodies, feedback clauses, and top-level bindings are not functions - they have no return path. The ? operator cannot be used in these contexts.

Common causes

Canonical fixes

Before:

n = parse(input)?

After:

n = match parse(input)
    ok(v)  => v
    err(e) => default

Code example

n = parse(input)?