2023-07-02 07:35:19 -05:00
|
|
|
error: file is loaded as a module multiple times: `src/b.rs`
|
2024-06-27 11:37:16 -05:00
|
|
|
--> src/main.rs:3:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
2024-06-27 11:37:16 -05:00
|
|
|
3 | mod b;
|
2023-07-02 07:35:19 -05:00
|
|
|
| ^^^^^^ first loaded here
|
2024-06-27 11:37:16 -05:00
|
|
|
4 | / #[path = "b.rs"]
|
|
|
|
5 | | mod b2;
|
2023-07-02 07:35:19 -05:00
|
|
|
| |_______^ loaded again here
|
|
|
|
|
|
|
|
|
= help: replace all but one `mod` item with `use` items
|
|
|
|
= note: `-D clippy::duplicate-mod` implied by `-D warnings`
|
2023-09-12 11:13:53 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::duplicate_mod)]`
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
|
|
error: file is loaded as a module multiple times: `src/c.rs`
|
2024-06-27 11:37:16 -05:00
|
|
|
--> src/main.rs:7:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
2024-06-27 11:37:16 -05:00
|
|
|
7 | mod c;
|
2023-07-02 07:35:19 -05:00
|
|
|
| ^^^^^^ first loaded here
|
2024-06-27 11:37:16 -05:00
|
|
|
8 | / #[path = "c.rs"]
|
|
|
|
9 | | mod c2;
|
2023-07-02 07:35:19 -05:00
|
|
|
| |_______^ loaded again here
|
2024-06-27 11:37:16 -05:00
|
|
|
10 | / #[path = "c.rs"]
|
|
|
|
11 | | mod c3;
|
2023-07-02 07:35:19 -05:00
|
|
|
| |_______^ 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`
|
2024-06-27 11:37:16 -05:00
|
|
|
--> src/main.rs:16:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
2024-06-27 11:37:16 -05:00
|
|
|
16 | mod d;
|
2023-07-02 07:35:19 -05:00
|
|
|
| ^^^^^^ first loaded here
|
2024-06-27 11:37:16 -05:00
|
|
|
17 | / #[path = "d.rs"]
|
|
|
|
18 | | mod d2;
|
2023-07-02 07:35:19 -05:00
|
|
|
| |_______^ 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`
|
2024-06-27 11:37:16 -05:00
|
|
|
--> src/main.rs:13:1
|
2023-07-02 07:35:19 -05:00
|
|
|
|
|
2024-06-27 11:37:16 -05:00
|
|
|
13 | mod from_other_module;
|
2023-07-02 07:35:19 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ 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
|