54 lines
1.3 KiB
Plaintext
54 lines
1.3 KiB
Plaintext
error: file is loaded as a module multiple times: `$DIR/b.rs`
|
|
--> $DIR/main.rs:5:1
|
|
|
|
|
LL | mod b;
|
|
| ^^^^^^ first loaded here
|
|
LL | / #[path = "b.rs"]
|
|
LL | | mod b2;
|
|
| |_______^ loaded again here
|
|
|
|
|
= help: replace all but one `mod` item with `use` items
|
|
= note: `-D clippy::duplicate-mod` implied by `-D warnings`
|
|
|
|
error: file is loaded as a module multiple times: `$DIR/c.rs`
|
|
--> $DIR/main.rs:9:1
|
|
|
|
|
LL | mod c;
|
|
| ^^^^^^ first loaded here
|
|
LL | / #[path = "c.rs"]
|
|
LL | | mod c2;
|
|
| |_______^ loaded again here
|
|
LL | / #[path = "c.rs"]
|
|
LL | | mod c3;
|
|
| |_______^ loaded again here
|
|
|
|
|
= help: replace all but one `mod` item with `use` items
|
|
|
|
error: file is loaded as a module multiple times: `$DIR/d.rs`
|
|
--> $DIR/main.rs:18:1
|
|
|
|
|
LL | mod d;
|
|
| ^^^^^^ first loaded here
|
|
LL | / #[path = "d.rs"]
|
|
LL | | mod d2;
|
|
| |_______^ loaded again here
|
|
|
|
|
= help: replace all but one `mod` item with `use` items
|
|
|
|
error: file is loaded as a module multiple times: `$DIR/from_other_module.rs`
|
|
--> $DIR/main.rs:15:1
|
|
|
|
|
LL | mod from_other_module;
|
|
| ^^^^^^^^^^^^^^^^^^^^^^ first loaded here
|
|
|
|
|
::: $DIR/other_module/mod.rs:1:1
|
|
|
|
|
LL | / #[path = "../from_other_module.rs"]
|
|
LL | | mod m;
|
|
| |______^ loaded again here
|
|
|
|
|
= help: replace all but one `mod` item with `use` items
|
|
|
|
error: aborting due to 4 previous errors
|
|
|