Rellum Rellum

S0121: generic type requires type arguments

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

Explanation

A generic type template is not a concrete type by itself. Each use in a type annotation must provide concrete type arguments so the compiler can instantiate a layout.

Common causes

Canonical fixes

Before:

value: Box = Box { value: 1 }

After:

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

Code example

value: Box = Box { value: 1 }