about summary refs log tree commit diff
path: root/src/test/ui/issues
diff options
context:
space:
mode:
authorEsteban Küber <esteban@kuber.com.ar>2020-04-17 10:46:22 -0700
committerEsteban Küber <esteban@kuber.com.ar>2020-04-22 12:12:33 -0700
commit1f43fc020935aaf0ca545c1fca2ec7c2ae923f9f (patch)
tree92c2671d1e9b77871c6ab6072852d7548a59694b /src/test/ui/issues
parent13c1daeb2f626b3923f7574226a089d95c8c7772 (diff)
Tweak wording
Diffstat (limited to 'src/test/ui/issues')
-rw-r--r--src/test/ui/issues/issue-13497.stderr2
-rw-r--r--src/test/ui/issues/issue-26638.stderr4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/test/ui/issues/issue-13497.stderr b/src/test/ui/issues/issue-13497.stderr
index 8454c6be61d..a231f73d067 100644
--- a/src/test/ui/issues/issue-13497.stderr
+++ b/src/test/ui/issues/issue-13497.stderr
@@ -5,7 +5,7 @@ LL |     &str
    |     ^ expected named lifetime parameter
    |
    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
-help: consider using the named lifetime
+help: consider using the `'static` lifetime
    |
 LL |     &'static str
    |     ^^^^^^^^
diff --git a/src/test/ui/issues/issue-26638.stderr b/src/test/ui/issues/issue-26638.stderr
index 3049ea772f2..3df58d66d1f 100644
--- a/src/test/ui/issues/issue-26638.stderr
+++ b/src/test/ui/issues/issue-26638.stderr
@@ -17,7 +17,7 @@ LL | fn parse_type_2(iter: fn(&u8)->&u8) -> &str { iter() }
    |                                        ^ expected named lifetime parameter
    |
    = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
-help: consider using the named lifetime
+help: consider using the `'static` lifetime
    |
 LL | fn parse_type_2(iter: fn(&u8)->&u8) -> &'static str { iter() }
    |                                        ^^^^^^^^
@@ -29,7 +29,7 @@ LL | fn parse_type_3() -> &str { unimplemented!() }
    |                      ^ expected named lifetime parameter
    |
    = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
-help: consider using the named lifetime
+help: consider using the `'static` lifetime
    |
 LL | fn parse_type_3() -> &'static str { unimplemented!() }
    |                      ^^^^^^^^