error: file is loaded as a module multiple times: `src/b.rs` --> src/main.rs:3:1 | 3 | mod b; | ^^^^^^ first loaded here 4 | / #[path = "b.rs"] 5 | | mod b2; | |_______^ loaded again here | = help: replace all but one `mod` item with `use` items = note: `-D clippy::duplicate-mod` implied by `-D warnings` = help: to override `-D warnings` add `#[allow(clippy::duplicate_mod)]` error: file is loaded as a module multiple times: `src/c.rs` --> src/main.rs:7:1 | 7 | mod c; | ^^^^^^ first loaded here 8 | / #[path = "c.rs"] 9 | | mod c2; | |_______^ loaded again here 10 | / #[path = "c.rs"] 11 | | mod c3; | |_______^ loaded again here | = help: replace all but one `mod` item with `use` items error: file is loaded as a module multiple times: `src/d.rs` --> src/main.rs:16:1 | 16 | mod d; | ^^^^^^ first loaded here 17 | / #[path = "d.rs"] 18 | | mod d2; | |_______^ loaded again here | = help: replace all but one `mod` item with `use` items error: file is loaded as a module multiple times: `src/from_other_module.rs` --> src/main.rs:13:1 | 13 | mod from_other_module; | ^^^^^^^^^^^^^^^^^^^^^^ first loaded here | ::: src/other_module/mod.rs:1:1 | 1 | / #[path = "../from_other_module.rs"] 2 | | mod m; | |______^ loaded again here | = help: replace all but one `mod` item with `use` items error: could not compile `duplicate_mod` (bin "duplicate_mod") due to 4 previous errors