docs

您正在閱讀 v0.1.0 的文件。Nabi 0.1.0 已停止支援。 最新版本: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