]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/same_name_method.stderr
Auto merge of #97944 - nikic:freebsd-update, r=Mark-Simulacrum
[rust.git] / src / tools / clippy / tests / ui / same_name_method.stderr
1 error: method's name is the same as an existing method in a trait
2   --> $DIR/same_name_method.rs:21:13
3    |
4 LL |             fn foo() {}
5    |             ^^^^^^^^^^^
6    |
7    = note: `-D clippy::same-name-method` implied by `-D warnings`
8 note: existing `foo` defined here
9   --> $DIR/same_name_method.rs:25:13
10    |
11 LL |             fn foo() {}
12    |             ^^^^^^^^^^^
13
14 error: method's name is the same as an existing method in a trait
15   --> $DIR/same_name_method.rs:35:13
16    |
17 LL |             fn clone() {}
18    |             ^^^^^^^^^^^^^
19    |
20 note: existing `clone` defined here
21   --> $DIR/same_name_method.rs:31:18
22    |
23 LL |         #[derive(Clone)]
24    |                  ^^^^^
25    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
26
27 error: method's name is the same as an existing method in a trait
28   --> $DIR/same_name_method.rs:45:13
29    |
30 LL |             fn foo() {}
31    |             ^^^^^^^^^^^
32    |
33 note: existing `foo` defined here
34   --> $DIR/same_name_method.rs:49:13
35    |
36 LL |             fn foo() {}
37    |             ^^^^^^^^^^^
38
39 error: method's name is the same as an existing method in a trait
40   --> $DIR/same_name_method.rs:59:13
41    |
42 LL |             fn foo() {}
43    |             ^^^^^^^^^^^
44    |
45 note: existing `foo` defined here
46   --> $DIR/same_name_method.rs:62:9
47    |
48 LL |         impl T1 for S {}
49    |         ^^^^^^^^^^^^^^^^
50
51 error: method's name is the same as an existing method in a trait
52   --> $DIR/same_name_method.rs:71:13
53    |
54 LL |             fn foo() {}
55    |             ^^^^^^^^^^^
56    |
57 note: existing `foo` defined here
58   --> $DIR/same_name_method.rs:74:9
59    |
60 LL |         impl T1 for S {}
61    |         ^^^^^^^^^^^^^^^^
62
63 error: aborting due to 5 previous errors
64