Duolith docs

Errors E0300 to E0399

E0303 Unknown Rust module

Message There is no Rust module named name

Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.

Why

An import of ../modules/<name> is an import of a Rust module, a folder of the project's modules/ that holds a Cargo.toml. There is no such folder.

How to fix it

Add modules/<name>/Cargo.toml (examples/rust-module shows one), or correct the folder name in the import.

In a terminal

duolith explain E0303

Mentioned in