about summary refs log tree commit diff
path: root/tests/ui/error-codes
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2024-01-13 19:24:52 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2024-01-14 12:31:34 +0000
commit2cfc81766c37eb0f6696d50f9207876293fa7732 (patch)
tree4412abe0a39c36c1012c9d7b59623cd36edc9e79 /tests/ui/error-codes
parent511bf6e1c7a3c2bf00d9c6d62f397b90aab55581 (diff)
downloadrust-2cfc81766c37eb0f6696d50f9207876293fa7732.tar.gz
rust-2cfc81766c37eb0f6696d50f9207876293fa7732.zip
Special case 'generic param from outer item' message for `Self`
Diffstat (limited to 'tests/ui/error-codes')
-rw-r--r--tests/ui/error-codes/E0401.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/error-codes/E0401.stderr b/tests/ui/error-codes/E0401.stderr
index d27fade487f..754867061c7 100644
--- a/tests/ui/error-codes/E0401.stderr
+++ b/tests/ui/error-codes/E0401.stderr
@@ -20,7 +20,7 @@ LL |     fn baz<U,
 LL |            (y: T) {
    |                ^ use of generic parameter from outer item
 
-error[E0401]: can't use generic parameters from outer item
+error[E0401]: can't use `Self` from outer item
   --> $DIR/E0401.rs:24:25
    |
 LL | impl<T> Iterator for A<T> {
@@ -29,7 +29,7 @@ LL | impl<T> Iterator for A<T> {
 LL |         fn helper(sel: &Self) -> u8 {
    |                         ^^^^
    |                         |
-   |                         use of generic parameter from outer item
+   |                         use of `Self` from outer item
    |                         refer to the type directly here instead
 
 error[E0283]: type annotations needed