mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-21 02:23:19 +00:00
11 lines
396 B
Text
11 lines
396 B
Text
error: `mod.rs` files are not allowed, found `src/bad/mod.rs`
|
|
--> src/bad/mod.rs:1:1
|
|
|
|
|
1 | pub struct Thing;
|
|
| ^
|
|
|
|
|
= help: move `src/bad/mod.rs` to `src/bad.rs`
|
|
= note: `-D clippy::mod-module-files` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::mod_module_files)]`
|
|
|
|
error: could not compile `fail-no-mod` (bin "fail-no-mod") due to 1 previous error
|