本頁尚未翻譯,以下為英文原文。
#E0027: cannot find value or function
No value or function of this name is in scope. Check the spelling, bring it in with use (the help lists the items of that name), or declare it with let first.
nabi
let count = 1;
println(f"{coun}");
error[E0027]: cannot find value `coun` in this scope --> main.nabi:2:12 | 2 | println(f"{coun}"); | ^^^^ | = help: did you mean `count`?
Fix the spelling, or import the item:
nabi
let count = 1;
println(f"{count}");
1
When an item of that name exists in another module, the help gives the use line that brings it in. Assigning to a name that was never declared with let is E0057.
Related: E0028 cannot find type or trait, E0057 invalid assignment, E0135 trait of the method not in scope
Found a mistake? Edit this page on GitHub. Last updated