So I have three files- main.rs, vectors.rs, colors.rs
In vectors.rs I define a Vector struct and a Color alias for it.
In colors.rs I have a function that takes a Color as argument and prints something out.
Now the import in the colors.rs just doesn't work.
At the top of the colors.rs file I have this:
mod vectors;
use vectors::Color;
and at the top of main.rs (that doesn't give an error though):
mod vectors;
mod colors;
use vectors::Color;
use colors::*;
the compiler tells me to do this: dpaste/K8V7 (Python)
but that's not how i want my folders to look like.