Rellum Rellum

S0033: unsupported + operands

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

Explanation

The + operator is overloaded only for Int, Float, String, and arrays in Rellum. Both operands must first have compatible types, and the resulting operation must be one of numeric addition, string concatenation, or array concatenation.

Common causes

Canonical fixes

Before:

message = "count: " + count

After:

message = "count: " + to_string(count)

Before:

sum = left + right

After:

sum = left.value + right.value

Before:

items = items + item

After:

items = items + [item]

Code example

message = "count: " + count