diff options
| author | Philipp Krones <hello@philkrones.com> | 2023-08-24 21:04:57 +0200 |
|---|---|---|
| committer | Philipp Krones <hello@philkrones.com> | 2023-08-24 21:04:57 +0200 |
| commit | ef4d64f1bd3f2a5693f062136f8411ac641bece8 (patch) | |
| tree | 386b8d0068d4b23d23f2a0ba5f8ee052dfc566a0 /tests/ui/same_name_method.rs | |
| parent | 32eecd4b884dd2901aad05d66d78ea643a896e25 (diff) | |
| parent | df68b713270775364dc286eaec1c48fd14ae50e4 (diff) | |
Merge remote-tracking branch 'upstream/master' into rustup
Diffstat (limited to 'tests/ui/same_name_method.rs')
| -rw-r--r-- | tests/ui/same_name_method.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/same_name_method.rs b/tests/ui/same_name_method.rs index f31a7e33c4b..1c166a19b0a 100644 --- a/tests/ui/same_name_method.rs +++ b/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 {} |
