summaryrefslogtreecommitdiffstats
path: root/src/tools/clippy/tests/ui/same_name_method.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/clippy/tests/ui/same_name_method.rs')
-rw-r--r--src/tools/clippy/tests/ui/same_name_method.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/clippy/tests/ui/same_name_method.rs b/src/tools/clippy/tests/ui/same_name_method.rs
index f31a7e33c..1c166a19b 100644
--- a/src/tools/clippy/tests/ui/same_name_method.rs
+++ b/src/tools/clippy/tests/ui/same_name_method.rs
@@ -19,6 +19,7 @@ mod should_lint {
impl S {
fn foo() {}
+ //~^ ERROR: method's name is the same as an existing method in a trait
}
impl T1 for S {
@@ -33,6 +34,7 @@ mod should_lint {
impl S {
fn clone() {}
+ //~^ ERROR: method's name is the same as an existing method in a trait
}
}
@@ -43,6 +45,7 @@ mod should_lint {
impl<U> S<U> {
fn foo() {}
+ //~^ ERROR: method's name is the same as an existing method in a trait
}
impl<U: Copy> T1 for S<U> {
@@ -57,6 +60,7 @@ mod should_lint {
impl S {
fn foo() {}
+ //~^ ERROR: method's name is the same as an existing method in a trait
}
impl T1 for S {}
@@ -69,6 +73,7 @@ mod should_lint {
impl S {
fn foo() {}
+ //~^ ERROR: method's name is the same as an existing method in a trait
}
impl T1 for S {}