about summary refs log tree commit diff
path: root/src/tools/clippy/tests/ui/to_string_trait_impl.stderr
blob: b24dfa39e011f8537138ae2d90720464f80c388f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error: direct implementation of `ToString`
  --> tests/ui/to_string_trait_impl.rs:11:1
   |
LL | / impl ToString for Point {
LL | |
LL | |     fn to_string(&self) -> String {
LL | |         format!("({}, {})", self.x, self.y)
LL | |     }
LL | | }
   | |_^
   |
   = help: prefer implementing `Display` instead
   = note: `-D clippy::to-string-trait-impl` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::to_string_trait_impl)]`

error: aborting due to 1 previous error