summaryrefslogtreecommitdiffstats
path: root/tests/ui/nested-ty-params.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nested-ty-params.stderr')
-rw-r--r--tests/ui/nested-ty-params.stderr16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/ui/nested-ty-params.stderr b/tests/ui/nested-ty-params.stderr
index 8f4746f5e..a9cdec667 100644
--- a/tests/ui/nested-ty-params.stderr
+++ b/tests/ui/nested-ty-params.stderr
@@ -1,22 +1,22 @@
-error[E0401]: can't use generic parameters from outer function
+error[E0401]: can't use generic parameters from outer item
--> $DIR/nested-ty-params.rs:3:16
|
LL | fn hd<U>(v: Vec<U> ) -> U {
- | - type parameter from outer function
+ | - type parameter from outer item
LL | fn hd1(w: [U]) -> U { return w[0]; }
- | - ^ use of generic parameter from outer function
+ | - ^ use of generic parameter from outer item
| |
- | help: try using a local generic parameter instead: `<U>`
+ | help: try introducing a local generic parameter here: `<U>`
-error[E0401]: can't use generic parameters from outer function
+error[E0401]: can't use generic parameters from outer item
--> $DIR/nested-ty-params.rs:3:23
|
LL | fn hd<U>(v: Vec<U> ) -> U {
- | - type parameter from outer function
+ | - type parameter from outer item
LL | fn hd1(w: [U]) -> U { return w[0]; }
- | - ^ use of generic parameter from outer function
+ | - ^ use of generic parameter from outer item
| |
- | help: try using a local generic parameter instead: `<U>`
+ | help: try introducing a local generic parameter here: `<U>`
error: aborting due to 2 previous errors