Module blog::daily_rfcs::etc::_0063_module_file_system_hierarchy
source · [−]Expand description
mod foo;
can only be placed in a crate root and in mod.rs files.
Note
Valid mod foo;
:
-
The file under parsing is the crate root, or
-
The file under parsing is a
mod.rs
, or -
#[path]
is specified, e.g.#[path = "foo.rs"] mod foo;
.