You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use self::submodule; // "error: unresolved import use self::submodule;"
pub mod submodule;
pub type Dummy = ();
and submodule.rs in the same directory
pub type Dummy2 = ();
The "use self::submodule" is declaring the same item name as "pub mod submodule" and should be illegal. The error message is misleading and needs to be changed.