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
Many newcomers expect this to have two instances of the same module foo. This in fact declares two separate foo modules which have different types (even though they have the same contents).
We should print a suppressable warning about when this happens. Something along the lines of second inclusion of foo.rs, did you mean to "use" the module instead?
The text was updated successfully, but these errors were encountered:
It's a common mistake to have code like:
Many newcomers expect this to have two instances of the same module
foo
. This in fact declares two separatefoo
modules which have different types (even though they have the same contents).We should print a suppressable warning about when this happens. Something along the lines of
second inclusion of foo.rs, did you mean to "use" the module instead?
The text was updated successfully, but these errors were encountered: