diff --git a/tests/ui/expected_named.stderr b/tests/ui/expected_named.stderr index 0068bdf36..c0fa04de7 100644 --- a/tests/ui/expected_named.stderr +++ b/tests/ui/expected_named.stderr @@ -5,7 +5,7 @@ error[E0106]: missing lifetime specifier | ^^^^^^^^ 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 `'static` lifetime +help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static`, or if you will only have owned values | 5 | fn borrowed() -> UniquePtr>; | +++++++++