]> git.lizzy.rs Git - rust.git/blob - tests/ui/same_name_method.stderr
removing unsafe from test fn's && renaming shrink to sugg_span
[rust.git] / 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:20: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:24: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:44:13
16    |
17 LL |             fn foo() {}
18    |             ^^^^^^^^^^^
19    |
20 note: existing `foo` defined here
21   --> $DIR/same_name_method.rs:48:13
22    |
23 LL |             fn foo() {}
24    |             ^^^^^^^^^^^
25
26 error: method's name is the same as an existing method in a trait
27   --> $DIR/same_name_method.rs:58:13
28    |
29 LL |             fn foo() {}
30    |             ^^^^^^^^^^^
31    |
32 note: existing `foo` defined here
33   --> $DIR/same_name_method.rs:61:9
34    |
35 LL |         impl T1 for S {}
36    |         ^^^^^^^^^^^^^^^^
37
38 error: method's name is the same as an existing method in a trait
39   --> $DIR/same_name_method.rs:70:13
40    |
41 LL |             fn foo() {}
42    |             ^^^^^^^^^^^
43    |
44 note: existing `foo` defined here
45   --> $DIR/same_name_method.rs:73:9
46    |
47 LL |         impl T1 for S {}
48    |         ^^^^^^^^^^^^^^^^
49
50 error: method's name is the same as an existing method in a trait
51   --> $DIR/same_name_method.rs:34:13
52    |
53 LL |             fn clone() {}
54    |             ^^^^^^^^^^^^^
55    |
56 note: existing `clone` defined here
57   --> $DIR/same_name_method.rs:30:18
58    |
59 LL |         #[derive(Clone)]
60    |                  ^^^^^
61    = note: this error originates in the derive macro `Clone` (in Nightly builds, run with -Z macro-backtrace for more info)
62
63 error: aborting due to 5 previous errors
64