#E0028: 找不到类型或 trait
作用域中没有这个名称的类型或 trait。检查拼写,或者用 use 导入它;help 会列出同名的项。
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`?
修正拼写:
nabi
let xs: List<i32> = [1];
println(f"{xs.len()}");
1
相关错误码:E0027 找不到值或函数,E0030 无法解析的导入
发现错误? 在 GitHub 上编辑此页 最后更新: