about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2018-09-09 04:00:21 +0000
committerbors <bors@rust-lang.org>2018-09-09 04:00:21 +0000
commitdac76020a5a33fa723d578043e422455e598620b (patch)
treea01edd1737815d8dbf4b27c8c4b818233baa7de4 /src/test/ui/error-codes
parent004bc5a33cd44cd0896cae917a75488579126da5 (diff)
parentbebecf850ab2a8c9df298bd3ab3b12ca8ea83c41 (diff)
downloadrust-dac76020a5a33fa723d578043e422455e598620b.tar.gz
rust-dac76020a5a33fa723d578043e422455e598620b.zip
Auto merge of #53960 - estebank:issue-51303, r=nagisa
Fix incorrect outer function type parameter message

Fix #51303.
Diffstat (limited to 'src/test/ui/error-codes')
-rw-r--r--src/test/ui/error-codes/E0401.stderr9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test/ui/error-codes/E0401.stderr b/src/test/ui/error-codes/E0401.stderr
index b088e8330e9..53eeb3e9c13 100644
--- a/src/test/ui/error-codes/E0401.stderr
+++ b/src/test/ui/error-codes/E0401.stderr
@@ -24,12 +24,13 @@ error[E0401]: can't use type parameters from outer function
   --> $DIR/E0401.rs:32:25
    |
 LL | impl<T> Iterator for A<T> {
-   | ---- `Self` type implicitly declared here, on the `impl`
+   | ---- `Self` type implicitly declared here, by this `impl`
 ...
 LL |         fn helper(sel: &Self) -> u8 { //~ ERROR E0401
-   |            ------       ^^^^ use of type variable from outer function
-   |            |
-   |            help: try using a local type parameter instead: `helper<Self>`
+   |                         ^^^^
+   |                         |
+   |                         use of type variable from outer function
+   |                         use a type here instead
 
 error: aborting due to 3 previous errors