File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ mod should_lint {
74
74
impl S {
75
75
fn foo ( ) { }
76
76
//~^ ERROR: method's name is the same as an existing method in a trait
77
+ //~| ERROR: method's name is the same as an existing method in a trait
77
78
}
78
79
79
80
impl T1 for S { }
Original file line number Diff line number Diff line change @@ -56,10 +56,22 @@ LL | fn foo() {}
56
56
| ^^^^^^^^^^^
57
57
|
58
58
note: existing `foo` defined here
59
- --> $DIR/same_name_method.rs:79 :9
59
+ --> $DIR/same_name_method.rs:80 :9
60
60
|
61
61
LL | impl T1 for S {}
62
62
| ^^^^^^^^^^^^^^^^
63
63
64
- error: aborting due to 5 previous errors
64
+ error: method's name is the same as an existing method in a trait
65
+ --> $DIR/same_name_method.rs:75:13
66
+ |
67
+ LL | fn foo() {}
68
+ | ^^^^^^^^^^^
69
+ |
70
+ note: existing `foo` defined here
71
+ --> $DIR/same_name_method.rs:82:9
72
+ |
73
+ LL | impl T2 for S {}
74
+ | ^^^^^^^^^^^^^^^^
75
+
76
+ error: aborting due to 6 previous errors
65
77
You can’t perform that action at this time.
0 commit comments