I have code that compiled when it was all in the same executable source file. I created a Struct A and implemented a trait, Trait_A, on that class. Trait_A had a single function in it.
I wanted to move my new struct and its Trait_A implementation into a "submodule" by creating a file in the src directory called "a.rs" and adding pub mod a; to the lib.rs file. I then tried to move around the use statements until the warnings went away.
However, when I did this, I got the following error message:
1 error[E0277]: the trait bound Trait_A is not satisfied.
Though, none of the code that calls this code has changed. Why can't I do this, what is the problem, how does one do this naturally?