Sisu
E0030

Type that does not exist

Error

Built from the repository at commit a8614dc.

A type is i64, u8, f64, bool, char, string, a class, or an array of a type such as [i64], and any of these may be followed by ?. Any other name is not a type.

When a class or built-in type has a similar name, the error offers it as an unsafe fix. The unsafe fix may be wrong: the name could be a class that was never written.

Why

Sisu checks every value against its type, so each type a program names must be one the program can see.

Broken

fn main() {
    let count: Number = 3
    print(count)
}

What sisu says

error[E0030]: cannot find type `Number`
 --> E0030.sisu:2:16
  |
2 |     let count: Number = 3
  |                ^^^^^^
  |
  = help: the types are `i64`, `u8`, `f64`, `bool`, `char`, `string`, classes, enums and arrays such as `[i64]`

sisu: 1 error
sisu: for more on a code, run `sisu explain <code>`: E0030

Fixed

fn main() {
    let count: i64 = 3
    print(count)
}