I have a Rust project made by cargo init
:
dir
|-src
|-main.rs
|-settings.rs
|-functions.rs
I have in settings.rs
:
use ::functions;
but at compilation I get an error:
error[E0432]: unresolved import `functions`
--> src/settings.rs:3:5
|
3 | use ::functions;
| ^^^^^^^^^^^ no `functions` in the root
See Question&Answers more detail:os