diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2020-04-17 10:46:22 -0700 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2020-04-22 12:12:33 -0700 |
| commit | 1f43fc020935aaf0ca545c1fca2ec7c2ae923f9f (patch) | |
| tree | 92c2671d1e9b77871c6ab6072852d7548a59694b /src/test/ui/issues | |
| parent | 13c1daeb2f626b3923f7574226a089d95c8c7772 (diff) | |
Tweak wording
Diffstat (limited to 'src/test/ui/issues')
| -rw-r--r-- | src/test/ui/issues/issue-13497.stderr | 2 | ||||
| -rw-r--r-- | src/test/ui/issues/issue-26638.stderr | 4 |
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!() } | ^^^^^^^^ |
