Rellum Rellum

S0124: conflicting inferred type arguments for type

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

Explanation

Each generic type parameter must resolve to one concrete type for a single type instantiation. If different fields imply different concrete types for the same parameter, the compiler cannot choose a coherent layout.

Common causes

Canonical fixes

Before:

value = Pair { first: 1, second: "x" }

After:

value = Pair { first: 1, second: 2 }

Code example

value = Pair { first: 1, second: "x" }