A generic type was given the wrong number of type arguments, or a non-generic type was given
some. Set<T> takes one; int takes none.
Wrong#
struct Box<T> { v: T }
fn get(b: Box<int, str>): int = b.vFixed#
struct Box<T> { v: T }
fn get(b: Box<int>): int = b.vCommon causes#
- Extra or missing arguments to a generic struct or enum.
- Type arguments on a plain type:
str<char>. - A map written
Map<K, V>: Auk writes{K: V}.