Rellum Rellum

E1012: expected request handler or initial clause

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

Explanation

A request binding body may contain only on handlers and an optional initial => clause. Other tokens inside the indented request body are not part of request syntax.

Common causes

Canonical fixes

Before:

value ~ request env!("NAME")
    some(v) => v

After:

value ~ request env!("NAME")
    on some(v) => v

Code example

value ~ request env!("NAME")
    some(v) => v