2 Checks for modules that have the same name as their
6 A typical beginner mistake is to have `mod foo;` and
9 The expectation is that items inside the inner `mod foo { .. }` are then
11 through `foo::x`, but they are only available through
13 If this is done on purpose, it would be better to choose a more
14 representative module name.