about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-01-24 04:06:47 +0000
committerMichael Goulet <michael@errs.io>2025-01-24 04:07:10 +0000
commitea9a253ff1e0a24e6439c122960f9a17a6e8d58d (patch)
treed5fca2329756b8734cb200f3e3ac068ffca30c2c /tests/ui/error-codes
parent99768c80a1c094a5cfc3b25a04e7a99de7210eae (diff)
downloadrust-ea9a253ff1e0a24e6439c122960f9a17a6e8d58d.tar.gz
rust-ea9a253ff1e0a24e6439c122960f9a17a6e8d58d.zip
Properly report error when object type param default references self
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0393.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/error-codes/E0393.stderr b/tests/ui/error-codes/E0393.stderr
index 489398b7be5..4847aa2508d 100644
--- a/tests/ui/error-codes/E0393.stderr
+++ b/tests/ui/error-codes/E0393.stderr
@@ -7,7 +7,7 @@ LL |
 LL | fn together_we_will_rule_the_galaxy(son: &dyn A) {}
    |                                               ^
    |
-   = note: because of the default `Self` reference, type parameters must be specified on object types
+   = note: because the parameter default references `Self`, the parameter must be specified on the object type
 help: set the type parameter to the desired type
    |
 LL | fn together_we_will_rule_the_galaxy(son: &dyn A<T>) {}