about summary refs log tree commit diff
path: root/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2024-08-10 00:54:16 +0000
committerEsteban Küber <esteban@kuber.com.ar>2024-08-10 00:54:16 +0000
commit860c8cdeafb6cad648c5b3cfd79ea07be28b097b (patch)
tree7b43235fa07c60f85f6c22e5406abae2aa0a311e /tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs
parent899eb03926be23f2e5d2ffcaa1d6f9ac40af7f13 (diff)
downloadrust-860c8cdeafb6cad648c5b3cfd79ea07be28b097b.tar.gz
rust-860c8cdeafb6cad648c5b3cfd79ea07be28b097b.zip
Differentiate between methods and associated functions
Accurately refer to assoc fn without receiver as assoc fn instead of methods.
Add `AssocItem::descr` method to centralize where we call methods and associated functions.
Diffstat (limited to 'tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs')
-rw-r--r--tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs
index d9fac0238e1..0477de3315a 100644
--- a/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs
+++ b/tests/ui/impl-trait/in-trait/trait-more-generics-than-impl.rs
@@ -6,7 +6,7 @@ trait Foo {
 
 impl Foo for S {
     fn bar() -> impl Sized {}
-    //~^ ERROR method `bar` has 0 type parameters but its trait declaration has 1 type parameter
+    //~^ ERROR associated function `bar` has 0 type parameters but its trait declaration has 1 type parameter
 }
 
 fn main() {