docs

您正在閱讀 v0.1.0 的文件。Nabi 0.1.0 已停止支援。 最新版本:v0.1.3 →

本頁尚未翻譯,以下為英文原文。

#E0030: unresolved import

A use names something that does not exist. Check the path: it starts at the package (pkg::), a dependency, or a standard library tier (std::, core::, bare::).

nabi
use std::fss;
error[E0030]: unresolved import: `std::fss` does not exist
  --> main.nabi:1:10
   |
 1 | use std::fss;
   |          ^^^

Fix the path:

nabi
use std::fs;

println(f"{fs::exists("no-such-file")}");
false

Related: E0027 cannot find value or function, E0035 module file problem

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