mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +00:00
20 lines
473 B
Text
20 lines
473 B
Text
error: module has the same name as its containing module
|
|
--> $DIR/module_inception.rs:14:9
|
|
|
|
|
14 | / mod bar {
|
|
15 | | mod foo {}
|
|
16 | | }
|
|
| |_________^
|
|
|
|
|
= note: `-D clippy::module-inception` implied by `-D warnings`
|
|
|
|
error: module has the same name as its containing module
|
|
--> $DIR/module_inception.rs:19:5
|
|
|
|
|
19 | / mod foo {
|
|
20 | | mod bar {}
|
|
21 | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|