rust-clippy/tests/ui/module_name_repetitions.stderr

35 lines
939 B
Text
Raw Normal View History

error: item name starts with its containing module's name
--> $DIR/module_name_repetitions.rs:8:5
2018-10-06 16:18:06 +00:00
|
2018-12-27 15:57:55 +00:00
LL | pub fn foo_bar() {}
2018-10-06 16:18:06 +00:00
| ^^^^^^^^^^^^^^^^^^^
|
2018-12-17 13:29:19 +00:00
= note: `-D clippy::module-name-repetitions` implied by `-D warnings`
error: item name ends with its containing module's name
--> $DIR/module_name_repetitions.rs:9:5
2018-10-06 16:18:06 +00:00
|
2018-12-27 15:57:55 +00:00
LL | pub fn bar_foo() {}
2018-10-06 16:18:06 +00:00
| ^^^^^^^^^^^^^^^^^^^
error: item name starts with its containing module's name
--> $DIR/module_name_repetitions.rs:10:5
|
2022-03-27 13:26:36 +00:00
LL | pub struct FooCake;
| ^^^^^^^^^^^^^^^^^^^
error: item name ends with its containing module's name
--> $DIR/module_name_repetitions.rs:11:5
|
2018-12-27 15:57:55 +00:00
LL | pub enum CakeFoo {}
| ^^^^^^^^^^^^^^^^^^^
2017-11-26 17:57:34 +00:00
error: item name starts with its containing module's name
--> $DIR/module_name_repetitions.rs:12:5
2017-11-26 17:57:34 +00:00
|
2018-12-27 15:57:55 +00:00
LL | pub struct Foo7Bar;
2017-11-26 17:57:34 +00:00
| ^^^^^^^^^^^^^^^^^^^
2018-01-16 16:06:27 +00:00
error: aborting due to 5 previous errors