Rellum Rellum

S0122: wrong number of type arguments for type

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

Explanation

Generic types declare a fixed number of type parameters. A type annotation or constructor instantiation must provide exactly that many type arguments.

Common causes

Canonical fixes

Before:

value: Pair[Int] = Pair { first: 1, second: 2 }

After:

value: Pair[Int, Int] = Pair { first: 1, second: 2 }

Code example

value: Pair[Int] = Pair { first: 1, second: 2 }