docs

You are reading the docs for v0.1.0. Nabi 0.1.0 is no longer supported. Latest release: v0.1.3 →

#E0028: cannot find type or trait

No type or trait of this name is in scope. Check the spelling, or bring it in with use; the help lists the items of that name.

nabi
let xs: Lst<i32> = [1];
error[E0028]: cannot find type `Lst` in this scope
  --> main.nabi:1:9
   |
 1 | let xs: Lst<i32> = [1];
   |         ^^^
   |
   = help: did you mean `List`?

Fix the spelling:

nabi
let xs: List<i32> = [1];
println(f"{xs.len()}");
1

Related: E0027 cannot find value or function, E0030 unresolved import

Found a mistake? Edit this page on GitHub. Last updated