E0204: Unknown type
| Code | Category | Stability |
|---|---|---|
E0204 | Semantic | Permanent |
Explanation
Rue could not resolve a name used where a type was required.
Likely cause
The type name is misspelled, is outside the current module's visible scope, or belongs to an imported module but was written without that module binding.
Examples
Unknown annotation type
fn main() -> i32 {
let value: Number = 42;
value
}
Use a type in scope
fn main() -> i32 {
let value: i32 = 42;
value
}