---
title: "U2003: Wrong number of type arguments"
url: https://una-lang.org/en/docs/errors/U2003/
release: v0.4.0
source: https://github.com/una-lang/una/blob/v0.4.0/crates/una-explain/explain/U2003.md
---

# U2003: Wrong number of type arguments

A type takes exactly as many type arguments as it has type parameters (`spec/03 §2`): `List[T]` and `Option[T]` take one, `Result[T, E]` takes two, and `Int` takes none, as does a type parameter. The message gives both counts.

## The repair at a glance

```diff
  module demo

- pub size(xs: List) -> Int = 0
+ pub size(xs: List[Int]) -> Int = xs.len
```

## Failing example

```una
module demo

pub size(xs: List) -> Int = 0
```

## Fixed example

```una
module demo

pub size(xs: List[Int]) -> Int = xs.len
```
