summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/same_name_method.stderr
blob: 3c5c4a53ad1f6cd0ade1a586df9f9747c4d8d5e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:21:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   |
note: existing `foo` defined here
  --> $DIR/same_name_method.rs:26:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   = note: `-D clippy::same-name-method` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::same_name_method)]`

error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:36:13
   |
LL |             fn clone() {}
   |             ^^^^^^^^^^^^^
   |
note: existing `clone` defined here
  --> $DIR/same_name_method.rs:32:18
   |
LL |         #[derive(Clone)]
   |                  ^^^^^
   = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)

error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:47:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   |
note: existing `foo` defined here
  --> $DIR/same_name_method.rs:52:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^

error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:62:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   |
note: existing `foo` defined here
  --> $DIR/same_name_method.rs:66:9
   |
LL |         impl T1 for S {}
   |         ^^^^^^^^^^^^^^^^

error: method's name is the same as an existing method in a trait
  --> $DIR/same_name_method.rs:75:13
   |
LL |             fn foo() {}
   |             ^^^^^^^^^^^
   |
note: existing `foo` defined here
  --> $DIR/same_name_method.rs:79:9
   |
LL |         impl T1 for S {}
   |         ^^^^^^^^^^^^^^^^

error: aborting due to 5 previous errors