mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +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:17:9
|
|
|
|
|
17 | / mod bar {
|
|
18 | | mod foo {}
|
|
19 | | }
|
|
| |_________^
|
|
|
|
|
= note: `-D clippy::module-inception` implied by `-D warnings`
|
|
|
|
error: module has the same name as its containing module
|
|
--> $DIR/module_inception.rs:22:5
|
|
|
|
|
22 | / mod foo {
|
|
23 | | mod bar {}
|
|
24 | | }
|
|
| |_____^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|