S0111: wrong number of type arguments
Generated from rellum-diagnostics/src/db.rs.
Explanation
Generic functions declare a fixed list of type parameters. An explicit type-argument list must provide exactly one concrete type for each parameter so the compiler can instantiate a single monomorphized function.
Common causes
- passing too many explicit type arguments
- passing too few explicit type arguments
- adding type arguments to a non-generic function
Canonical fixes
- provide exactly the declared type arguments
Before:
identity[Int, String](42)
After:
identity[Int](42)
- omit explicit type arguments and let the call infer them
Before:
identity[Int](42)
After:
identity(42)
Code example
identity[Int, String](42)