2019-07-15 16:43:47 +00:00
|
|
|
error: implementation of inherent method `to_string(&self) -> String` for type `A`
|
2019-07-06 18:13:38 +00:00
|
|
|
--> $DIR/inherent_to_string.rs:18:5
|
|
|
|
|
|
|
|
|
LL | / fn to_string(&self) -> String {
|
|
|
|
LL | | "A.to_string()".to_string()
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::inherent-to-string` implied by `-D warnings`
|
2019-07-15 16:43:47 +00:00
|
|
|
= help: implement trait `Display` for type `A` instead
|
2019-07-06 18:13:38 +00:00
|
|
|
|
2019-07-15 16:43:47 +00:00
|
|
|
error: type `C` implements inherent method `to_string(&self) -> String` which shadows the implementation of `Display`
|
2019-07-06 18:13:38 +00:00
|
|
|
--> $DIR/inherent_to_string.rs:42:5
|
|
|
|
|
|
|
|
|
LL | / fn to_string(&self) -> String {
|
|
|
|
LL | | "C.to_string()".to_string()
|
|
|
|
LL | | }
|
|
|
|
| |_____^
|
|
|
|
|
|
|
|
|
= note: #[deny(clippy::inherent_to_string_shadow_display)] on by default
|
2019-07-15 16:43:47 +00:00
|
|
|
= help: remove the inherent method from type `C`
|
2019-07-06 18:13:38 +00:00
|
|
|
|
2019-07-15 16:43:47 +00:00
|
|
|
error: unknown clippy lint: clippy::inherent_to_string_shadow
|
|
|
|
--> $DIR/inherent_to_string.rs:2:9
|
|
|
|
|
|
|
|
|
LL | #![deny(clippy::inherent_to_string_shadow)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unknown-clippy-lints` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
2019-07-06 18:13:38 +00:00
|
|
|
|