]> git.proxmox.com Git - rustc.git/blame - src/tools/clippy/tests/ui/inherent_to_string.stderr
Merge tag 'debian/1.52.1+dfsg1-1_exp2' into proxmox/buster
[rustc.git] / src / tools / clippy / tests / ui / inherent_to_string.stderr
CommitLineData
f20569fa
XL
1error: implementation of inherent method `to_string(&self) -> String` for type `A`
2 --> $DIR/inherent_to_string.rs:21:5
3 |
4LL | / fn to_string(&self) -> String {
5LL | | "A.to_string()".to_string()
6LL | | }
7 | |_____^
8 |
9 = note: `-D clippy::inherent-to-string` implied by `-D warnings`
10 = help: implement trait `Display` for type `A` instead
11
12error: type `C` implements inherent method `to_string(&self) -> String` which shadows the implementation of `Display`
13 --> $DIR/inherent_to_string.rs:45:5
14 |
15LL | / fn to_string(&self) -> String {
16LL | | "C.to_string()".to_string()
17LL | | }
18 | |_____^
19 |
20note: the lint level is defined here
21 --> $DIR/inherent_to_string.rs:2:9
22 |
23LL | #![deny(clippy::inherent_to_string_shadow_display)]
24 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
25 = help: remove the inherent method from type `C`
26
27error: aborting due to 2 previous errors
28