I am new in rustlang and I am struggling to import.
I have 3 .rs file in my project.
- main.rs
- animal.rs
- kind.rs
There is no error in the following situation:
In main.rs: There is no import
In animal.rs : mod kind;
In kind.rs: There is a structre named Kind
,but there is a problem in the following situation:
In main.rs: mod animal;
In animal.rs : mod kind;
In kind.rs: There is a structre named Kind
Error no: E0583. Compiler says that "unresolved module".
What is the problem?