blob: c0fa04de7ba085173951ea589e851753cb1ca942 [file] [log] [blame]
error[E0106]: missing lifetime specifier
--> tests/ui/expected_named.rs:5:36
|
5 | fn borrowed() -> UniquePtr<Borrowed>;
| ^^^^^^^^ 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, 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<Borrowed<'static>>;
| +++++++++