Skip to main content

E0011: Unknown Type Annotation

You used a type name that hasn't been defined.

Example

fn process(x: Foo) {  // Error: unknown type annotation `Foo`
// ...
}

How to fix

Define the type before using it:

struct Foo {
value: i64,
}

fn process(x: Foo) { // OK
// ...
}

Or check for typos in the type name:

fn process(x: i64) {  // OK: using a built-in type
// ...
}