Rellum Rellum

S0123: cannot infer type arguments for type

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

Explanation

Generic record and enum construction can infer type arguments only from fields whose declared types mention the parameters. If a parameter never appears in the provided field information, the compiler needs an explicit type annotation.

Common causes

Canonical fixes

Before:

value = Box { value: none }

After:

value: Box[Int] = Box { value: none }

Code example

value = Box { value: none }