fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: implementation of inherent method `to_string(&self) -> String` for type `A` 2 --> $DIR/inherent_to_string.rs:22:5 3 | 4LL | / fn to_string(&self) -> String { 5LL | | 6LL | | "A.to_string()".to_string() 7LL | | } 8 | |_____^ 9 | 10 = help: implement trait `Display` for type `A` instead 11 = note: `-D clippy::inherent-to-string` implied by `-D warnings` 12 = help: to override `-D warnings` add `#[allow(clippy::inherent_to_string)]` 13 14error: type `C` implements inherent method `to_string(&self) -> String` which shadows the implementation of `Display` 15 --> $DIR/inherent_to_string.rs:47:5 16 | 17LL | / fn to_string(&self) -> String { 18LL | | 19LL | | "C.to_string()".to_string() 20LL | | } 21 | |_____^ 22 | 23 = help: remove the inherent method from type `C` 24 = note: `#[deny(clippy::inherent_to_string_shadow_display)]` on by default 25 26error: aborting due to 2 previous errors 27